USB: cdc-wdm: updating desc->length must be protected by spin_lock
authorBjørn Mork <bjorn@mork.no>
Mon, 16 Jan 2012 11:41:47 +0000 (12:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 20:17:29 +0000 (12:17 -0800)
commitc428b70c1e115c5649707a602742e34130d19428
treedb052452481dc195d66c1e2761112b62f24a2b6a
parent1097ccebe630170080c41df0edcf88e0626e9c75
USB: cdc-wdm: updating desc->length must be protected by spin_lock

wdm_in_callback() will also touch this field, so we cannot change it without locking

Cc: stable@vger.kernel.org
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-wdm.c