author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | |
Thu, 14 Jan 2021 08:09:51 +0000 (00:09 -0800) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Fri, 15 Jan 2021 16:15:04 +0000 (17:15 +0100) | ||
commit | c28095bc99073ddda65e4f31f6ae0d908d4d5cd8 | |
tree | 19564cea8f8e210a535123fa6318cb0cff073d08 | tree | snapshot (tar.xz tar.gz zip) |
parent | 6e6aa61d81194c01283880950df563b1b9abec46 | commit | diff |
usb: udc: core: Use lock when write to soft_connect
Use lock to guard against concurrent access for soft-connect/disconnect
operations when writing to soft_connect sysfs.
Fixes: 2ccea03a8f7e ("usb: gadget: introduce UDC Class")
Cc: stable@vger.kernel.org
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/338ea01fbd69b1985ef58f0f59af02c805ddf189.1610611437.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Use lock to guard against concurrent access for soft-connect/disconnect
operations when writing to soft_connect sysfs.
Fixes: 2ccea03a8f7e ("usb: gadget: introduce UDC Class")
Cc: stable@vger.kernel.org
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/338ea01fbd69b1985ef58f0f59af02c805ddf189.1610611437.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/core.c | diff | blob | history |