diff options
author | Hyung Taek Ryoo <hryoo@nvidia.com> | 2013-07-25 10:09:01 -0700 |
---|---|---|
committer | Harshada Kale <hkale@nvidia.com> | 2013-07-30 06:38:09 -0700 |
commit | a884db0b832b9f63680464cc62a1a8635a3019fe (patch) | |
tree | 1280e8133408ee74a0ba34c9498236bcd07439d7 /security | |
parent | 4afbff99ddc461e0df7d95ccd030165095f99dfa (diff) |
security: tf_driver: update with latest TL drop
This change fixes abnormal signal handling in tf driver.
Tf_daemon(user thread) is waiting for the signal when coming out of LP0,
but tf_daemon never gets the signal because tf driver can't handle the
signal properly. If there's a pending signal when coming out of LP0,
this fix clears the pending signal.
Bug 1244750
Bug 1309812
Change-Id: I7849866c7993af8716c17f6b7a06692271334664
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/253548
GVS: Gerrit_Virtual_Submit
Reviewed-by: Karthik Iyer <karthiki@nvidia.com>
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/tf_driver/tf_comm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/security/tf_driver/tf_comm.c b/security/tf_driver/tf_comm.c index c1f4f654632c..d2e7e1360443 100644 --- a/security/tf_driver/tf_comm.c +++ b/security/tf_driver/tf_comm.c @@ -1244,8 +1244,10 @@ copy_answers: wake_up(&(comm->wait_queue)); #ifdef CONFIG_FREEZER - if (try_to_freeze()) + if (try_to_freeze()) { + recalc_sigpending(); goto copy_answers; + } #endif #ifndef CONFIG_PREEMPT |