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@linuxfoundation.org>
Fri, 3 Feb 2012 17:22:01 +0000 (09:22 -0800)
commit3f60c1956f3392760d3c969f19f41d4aa653f726
treee2109a9184955de03f164c0595a91e944a1daa4d
parent95c13665f4c47b150bd317355be51e5a0e4d292c
USB: cdc-wdm: updating desc->length must be protected by spin_lock

commit c428b70c1e115c5649707a602742e34130d19428 upstream.

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

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