commit | 249a456930cd2df29d085fb738b0e8f4bc1680cf | [log] [tgz] |
---|---|---|
author | Paul Zimmerman <Paul.Zimmerman@synopsys.com> | Fri Feb 24 17:32:16 2012 -0800 |
committer | Felipe Balbi <balbi@ti.com> | Fri Mar 02 12:12:10 2012 +0200 |
tree | f647de409868ab4650ebae3215a9c6ba6112c59c | |
parent | aee63e3cb6b0396b99c6387a47cb90a7417f3957 [diff] |
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>