diff options
author | Willy Tarreau <w@1wt.eu> | 2017-09-07 11:56:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-18 11:11:07 +0100 |
commit | e8d650563c5fc1ef9f862a8122397e18043fd51b (patch) | |
tree | dc83c8f8fb1d605255c918d7ab6ee30f72056567 /drivers/rtc/rtc-m41t93.c | |
parent | 01000c56caccf36ddd253bb15036a1cbb93ad27f (diff) |
misc: panel: properly restore atomic counter on error path
commit 93dc1774d2a4c7a298d5cdf78cc8acdcb7b1428d upstream.
Commit f4757af ("staging: panel: Fix single-open policy race condition")
introduced in 3.19-rc1 attempted to fix a race condition on the open, but
failed to properly do it and used to exit without restoring the semaphore.
This results in -EBUSY being returned after the first open error until
the module is reloaded or the system restarted (ie: consecutive to a
dual open resulting in -EBUSY or to a permission error).
Fixes: f4757af85 # 3.19-rc1
Cc: Mariusz Gorski <marius.gorski@gmail.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
[wt: driver is in staging/panel in 4.4]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/rtc/rtc-m41t93.c')
0 files changed, 0 insertions, 0 deletions