summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorHyung Taek Ryoo <hryoo@nvidia.com>2013-07-25 10:09:01 -0700
committerGabby Lee <galee@nvidia.com>2013-07-31 18:35:03 -0700
commit5fb6ff9111d9e0c141116838635ba97f43891de7 (patch)
treed8b7c369237251a2d5e6aaa5071832ecf8353881 /security
parent8de6047527debf5fd27eb995a8520b178252d3f4 (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 Bug 1340142 Change-Id: I7849866c7993af8716c17f6b7a06692271334664 Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com> Reviewed-on: http://git-master/r/253548 (cherry picked from commit a884db0b832b9f63680464cc62a1a8635a3019fe) Reviewed-on: http://git-master/r/256162 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Harry Hong <hhong@nvidia.com> Reviewed-by: Yong Goo Yi <yyi@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Gabby Lee <galee@nvidia.com>
Diffstat (limited to 'security')
-rw-r--r--security/tf_driver/tf_comm.c4
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