Description: VM Map 添加LiteIPC 保护

IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IASJLX
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
(cherry picked commit from <gitee.com//openharmony/kernel_liteos_a/commit/75af9e28d9e92398f71e2f884c53a2745e7cd097>
This commit is contained in:
hw_llm
2024-09-20 16:42:19 +08:00
parent 20820bd0f7
commit 07be40d1f3
4 changed files with 10 additions and 2 deletions

View File

@@ -239,6 +239,7 @@ LITE_OS_SEC_TEXT STATIC int LiteIpcMmap(struct file *filep, LosVmMapRegion *regi
goto ERROR_MAP_OUT;
}
ipcInfo->pool.poolSize = region->range.size;
region->regionFlags |= VM_MAP_REGION_FLAG_LITEIPC;
return 0;
ERROR_MAP_OUT:
LOS_VFree(ipcInfo->pool.kvaddr);