USB: cdc-wdm: updating desc->length must be protected by spin_lock
commit906e114c35cd8f98be1f672a2f32c0cf9800296b
authorBjørn Mork <bjorn@mork.no>
Mon, 16 Jan 2012 11:41:47 +0000 (16 12:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:18:59 +0000 (3 09:18 -0800)
tree1edf082fe65da1e000c5bd2dbf3a503217974a1f
parent3b09a4eb286bdc9dbc4c9620faa562c8470b2366
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