Android 14.0.0 Release 0.66 (AP1A.240405.002.A1,felix)
LWIS: fix race condition

To prevent ramdumps caused by accessing invalid DMA address,
we have made sure that the dma addr is valid and add a lock to
avoid race condition when multiple clients access the DMA address.

Bug: 315986225
Test: CTS, GCA, Force to ramdump to check it.
Change-Id: Iba1b9850f0aefa8025fe51504a1b39374ec385ae
Signed-off-by: Nick Chung <nickchung@google.com>
(cherry picked from commit ccfcf1ed071f43c12a61e8c096a61353d45ace22)
3 files changed