diff options
| author | Krzysztof Opasiak <kopasiak90@gmail.com> | 2017-01-19 18:55:29 +0100 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-01-09 23:14:36 -0800 |
| commit | 601c68d3426159dd963e36fad1f615092359201c (patch) | |
| tree | 162e9ff0902983c72264040856cbd7f9c1f323c6 /fs/stack.c | |
| parent | 6cc6df43ed3dd9fe0b49432156f24b0509fd5299 (diff) | |
usb: gadget: f_hid: Use spinlock instead of mutex
commit 33e4c1a9987a1fc3b42c3b534100b5b006d55c61 upstream.
As IN request has to be allocated in set_alt() and released in
disable() we cannot use mutex to protect it as we cannot sleep
in those funcitons. Let's replace this mutex with a spinlock.
Change-Id: I44c16823165b25c6d8d7e1697de75e373226272a
Tested-by: David Lechner <david@lechnology.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 6d0511ed15db30965f8a3be8f0733bb6efd2b95e
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Diffstat (limited to 'fs/stack.c')
0 files changed, 0 insertions, 0 deletions
