security: tlk_driver: serialize calls to tlk
authorJames Zhao <jamesz@nvidia.com>
Wed, 25 Sep 2013 21:10:00 +0000 (14:10 -0700)
committerAjay Nandakumar <anandakumarm@nvidia.com>
Thu, 3 Oct 2013 13:47:32 +0000 (18:47 +0530)
commite6a669078f2a8de8d7fa4a48077b304811f34abb
tree69bd1eb7a97c2f6f7294ad7c8dec5ab2379d00dc
parent8cd786e63be1dbb255c306c00bb518fd5139e232
security: tlk_driver: serialize calls to tlk

Add mutex lock to serialize all ioctls that will
result in a smc call to tlk.

bug 1340442
bug 1340471

Change-Id: Ie2cc1e21dcff0a78c971aad0c230f71d1f2b1c49
Signed-off-by: James Zhao <jamesz@nvidia.com>
(cherry picked from commit 2a9da9d1c1e717d7f44befb0ca84cbca413b9e3f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
security/tlk_driver/ote_device.c