Commit 354fa5d5 authored by Peng Yang's avatar Peng Yang Committed by Treehugger Robot
Browse files

ANDROID: gunyah: GKI: Avoid release the CMA memory when it's in use



One process boots up SVM, the CMA memory is allocated and used by SVM.
If another process try to boot up VM again, will allocate fail and
release this CMA memory region. It will cause kernel panic when one
process allocates memory from this CMA memory region due to not do
relciam parcel for this memory. Fix this issue by return a error in
gunyah_cma_create_mem_fd to avoid gunyah_cma_release is called when
the CMA memory region is already allocated by other process.

Bug: 432359620
Change-Id: Iee2d20d455e80d992db45c875488fd9cb631f8fd
Signed-off-by: default avatarPeng Yang <quic_penyan@quicinc.com>
parent b2a2ed8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment