OSDN Git Service

qseecom: fix a common lib loading issue
authorZhen Kong <zkong@codeaurora.org>
Wed, 18 Oct 2017 17:27:20 +0000 (10:27 -0700)
committerGerrit - the friendly Code Review server <code-review@localhost>
Sat, 2 Dec 2017 16:17:10 +0000 (08:17 -0800)
commit6fadad98bf2467bc0f970ec79fe38c3b5e1d5379
treede32db490a66e68a197167774b064206a7b0c473
parent55cbbe687356eeb53256e8f8dc7f7daddae68272
qseecom: fix a common lib loading issue

cmnlib_ion_handle is only used within qseecom_load_commonlib_image()
and is not a shared resource, so change it to a local variable and
avoid potential reuse or free by another thread in case of reentrancy.

Change-Id: I9e1f25cd024a19a7379b7409bdc6521bcd8bcae5
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
drivers/misc/qseecom.c