diff options
author | Holmes Chou <holmeschou@google.com> | 2022-06-07 08:47:14 +0000 |
---|---|---|
committer | Holmes Chou <holmeschou@google.com> | 2022-06-07 08:47:14 +0000 |
commit | 7128d99073449623e9141633814f7d9651809abb (patch) | |
tree | b0bf73e9c958f590a6452dc6f804210430439acc | |
parent | 886548ab38f95aa4e8fbe17d978e5a03de9cb22a (diff) | |
download | lwis-7128d99073449623e9141633814f7d9651809abb.tar.gz |
LWIS: Keep lock until exiting loop
We still in the loop if we met error. So, we need to keep the lock until
exiting the loop.
Bug: 234888130
Test: GCA, CTS
Signed-off-by: Holmes Chou <holmeschou@google.com>
Change-Id: Ib4b3e8f508777bf6105aece0a3c5302368a4d1be
-rw-r--r-- | lwis_device_top.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lwis_device_top.c b/lwis_device_top.c index e562d7f..fb58bab 100644 --- a/lwis_device_top.c +++ b/lwis_device_top.c @@ -140,7 +140,6 @@ static void subscribe_tasklet_func(unsigned long data) event_subscriber_list = event_subscriber_list_find((struct lwis_device *)data, trigger_event->trigger_event_id); if (!event_subscriber_list || list_empty(&event_subscriber_list->list)) { - spin_unlock_irqrestore(&lwis_top_dev->base_dev.lock, flags); dev_err(lwis_top_dev->base_dev.dev, "Failed to find event subscriber list for %llx\n", trigger_event->trigger_event_id); |