diff options
author | Peter Korsgaard <peter@korsgaard.com> | 2025-03-18 16:22:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-11 16:08:33 +0200 |
commit | 937a8a3a8d46a3377b4195cd8f2aa656666ebc8b (patch) | |
tree | 33194c2d229c2f93802fe2d43a6de4a98c849739 /drivers/usb/cdns3/cdns3-plat.c | |
parent | 24454a11dd1551cd202a46a6fd69c65a1a368903 (diff) |
usb: gadget: f_hid: wake up readers on disable/unbind
Similar to how it is done in the write path.
Add a disabled flag to track the function state and use it to exit the read
loops to ensure no readers get stuck when the function is disabled/unbound,
protecting against corruption when the waitq and spinlocks are reinitialized
in hidg_bind().
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Link: https://lore.kernel.org/r/20250318152207.330997-1-peter@korsgaard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions