From: Paul Zimmerman Date: Sat, 25 Feb 2012 01:32:16 +0000 (-0800) Subject: usb: dwc3: take lock while modifying flags X-Git-Tag: v3.4-rc1~184^2~22^2~35^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=249a456930cd2df29d085fb738b0e8f4bc1680cf;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed