Commit c28095b
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: 2ccea03 ("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>1 parent 6e6aa61 commit c28095b
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1529 | 1529 | | |
1530 | 1530 | | |
1531 | 1531 | | |
| 1532 | + | |
1532 | 1533 | | |
| 1534 | + | |
1533 | 1535 | | |
1534 | 1536 | | |
1535 | | - | |
| 1537 | + | |
| 1538 | + | |
1536 | 1539 | | |
1537 | 1540 | | |
1538 | 1541 | | |
| |||
1543 | 1546 | | |
1544 | 1547 | | |
1545 | 1548 | | |
1546 | | - | |
| 1549 | + | |
| 1550 | + | |
1547 | 1551 | | |
1548 | 1552 | | |
1549 | | - | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
1550 | 1557 | | |
1551 | 1558 | | |
1552 | 1559 | | |
| |||
0 commit comments