summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngela Stegmaier2017-02-27 15:05:39 -0600
committerBuddy Liong2017-07-17 13:20:24 -0500
commit75810b7bb53d2d076a96c2d1e2f8c61b3c12cb6b (patch)
treebc5ca40041d4c8620c3954a15dd0db4d936877fa /dce_rpc.h
parent4a3df475bc54ae16fd22febeaa8363315708fc1a (diff)
downloadhardware-ti-libdce-75810b7bb53d2d076a96c2d1e2f8c61b3c12cb6b.tar.gz
hardware-ti-libdce-75810b7bb53d2d076a96c2d1e2f8c61b3c12cb6b.tar.xz
hardware-ti-libdce-75810b7bb53d2d076a96c2d1e2f8c61b3c12cb6b.zip
libdce[Android]: Fix NULL pointer dereference in dce_buf_unlock
In the case where dce_buf_lock fails due to dce_ipc_init failure, then MmRpcHandle is not guaranteed to be initialized and could result in a NULL pointer de-reference. In some use-cases where the IPUMM takes a longer time to come up, this was resulting in a crash, causing the Android media service to stop and restart several times. This patch fixes the NULL pointer de-reference by first checking if the IPC is initialized in dce_buf_unlock before calling the IPC API. This patch also has a minor cleanup of an un-used static global variable. Change-Id: Idb74fb60c0b9696a0be87e4808b537ebfc84cd7e Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Diffstat (limited to 'dce_rpc.h')
0 files changed, 0 insertions, 0 deletions