summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2019-10-30 03:40:46 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-21 10:35:08 +0100
commita501c2136bea86f0fb0bdcbe2f83eb5575798a6b (patch)
tree9c5c617a3915c576420d6df6cb3f20575b6b490e /include/linux
parentc68325bf99803454fd9e1bedfa0781a8ed38dae3 (diff)
usb: gadget: configfs: Fix missing spin_lock_init()
commit 093edc2baad2c258b1f55d1ab9c63c2b5ae67e42 upstream. 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 'include/linux')
0 files changed, 0 insertions, 0 deletions