diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2019-10-30 03:40:46 +0000 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2019-11-22 10:54:50 +0800 |
commit | 57d5b571102b34b8bf2ae6e3f4e1381d7ac8a2fc (patch) | |
tree | ef26abd140081b9b18bdb3a44e6661b2af87abf8 /sound | |
parent | 8bb4b30f709e8b00d53b9ba00630eed2d5aebdd4 (diff) |
usb: gadget: configfs: Fix missing spin_lock_init()
The driver allocates the spinlock but not initialize it.
Use spin_lock_init() on it to initialize it correctly.
This is detected by Coccinelle semantic patch.
Fixes: 1a1c851bbd70 ("usb: gadget: configfs: fix concurrent issue between composite APIs")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Link: https://lore.kernel.org/r/20191030034046.188808-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions