Re: [PATCH 4/6] usb: dwc3: take lock while modifying flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Fri, Feb 24, 2012 at 05:32:16PM -0800, Paul Zimmerman wrote:
> 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@xxxxxxxxxxxx>

applied, thanks

-- 
balbi

Attachment: signature.asc
Description: Digital signature


B and H Foto and Electronics Corp.

[Linux Media]     [Video for Linux]     [Linux Input]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]     [More Archives]

Add to Google Powered by Linux