diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2017-09-21 16:12:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-22 18:29:00 +0200 |
commit | 6e76c01e71551cb221c1f3deacb9dcd9a7346784 (patch) | |
tree | 7d82a827794b423e0e7232a87f0656f2aa5add8a /drivers/base | |
parent | 786de92b3cb26012d3d0f00ee37adf14527f35c4 (diff) | |
download | linux-6e76c01e71551cb221c1f3deacb9dcd9a7346784.tar.bz2 |
USB: gadgetfs: fix copy_to_user while holding spinlock
The gadgetfs driver as a long-outstanding FIXME, regarding a call of
copy_to_user() made while holding a spinlock. This patch fixes the
issue by dropping the spinlock and using the dev->udc_usage mechanism
introduced by another recent patch to guard against status changes
while the lock isn't held.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Andrey Konovalov <andreyknvl@google.com>
CC: <stable@vger.kernel.org>
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions