[RAMEN9610-12171] android: ion: never free pages if unprotect fails
authorCho KyongHo <pullip.cho@samsung.com>
Tue, 30 Oct 2018 07:37:49 +0000 (16:37 +0900)
committerhskang <hs1218.kang@samsung.com>
Thu, 14 Feb 2019 16:20:21 +0000 (01:20 +0900)
commit9ec4ede3531e78ed69bffe7db3d7d312cc2e7d86
tree2c3334ae618c2c0027cc88b100705df0984f288b
parent74d267239573e4f6b271e4bc0593c18cbdbe2880
[RAMEN9610-12171] android: ion: never free pages if unprotect fails

If releasing H/W protection to a buffer fails, the buffer might not
be unusable in Linux forever becuase we do not have an idea to
determine if the buffer is accessible in Linux. So, we should mark
that buffer unusable with holding allocated buffer.

Change-Id: I7443506d3092adfd5538383faed7fc80f3bef8df
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/staging/android/ion/ion_buffer_protect.c
drivers/staging/android/ion/ion_carveout_heap.c
drivers/staging/android/ion/ion_cma_heap.c
drivers/staging/android/ion/ion_exynos.h
drivers/staging/android/ion/ion_hpa_heap.c