summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>2012-02-25 02:32:16 +0100
committerFelipe Balbi <balbi@ti.com>2012-03-02 11:12:10 +0100
commit249a456930cd2df29d085fb738b0e8f4bc1680cf (patch)
treef647de409868ab4650ebae3215a9c6ba6112c59c /samples
parentusb: dwc3: shorten long delay in dwc3_gadget_set_link_state() (diff)
downloadlinux-249a456930cd2df29d085fb738b0e8f4bc1680cf.tar.xz
linux-249a456930cd2df29d085fb738b0e8f4bc1680cf.zip
usb: dwc3: take lock while modifying flags
dwc3_gadget_ep_set_wedge() and dwc3_gadget_set_selfpowered() were modifying dwc->flags/dwc->is_selfpowered without taking the lock. Since those modifications are non-atomic, that could cause other flags to be corrupted. Fix them both to take the lock. Signed-off-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions