qseecom: add mutex protection for unloading app in qseecom_release

When multiple processes called qseecom_release() to close /dev/qseecom
at almost the same time, and one process succeeded to unload app and
released resource, null pointer exception would occurr on another process.
So make change to add mutex_lock/mutex_unlock for qseecom_unload_app
in qseecom_release.

Change-Id: Ie7cf61b1d3ea5339ea79e0f7637ca610969e3d6c
CRs-fixed: 849916
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
1 file changed