# Re: \[PATCH v3\] usb: udc: core: Use lock when write to soft\_connect

- From: Felipe Balbi \<balbi@kernel.org\>
- Date: 2021-01-14 09:22:24 
- List: stable
- Page: https://ratatoskr.run/stable/2021/01/6870532
- Thread: https://ratatoskr.run/linux-usb/2021/01/6870528/t.md

```text

Hi,

Thinh Nguyen [ref] writes:
> Use lock to guard against concurrent access for soft-connect/disconnect
> operations when writing to soft_connect sysfs.
>
> Cc: <redacted>
> Fixes: 2ccea03a8f7e ("usb: gadget: introduce UDC Class")
> Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>

this does look better than v2 :-p

Acked-by: Felipe Balbi <balbi@kernel.org>

-- 
balbi
```

## Attachments

- [signature.asc](https://ratatoskr.run/stable/2021/01/6870532/attachment/0) (application/pgp-signature, 857 bytes)
