USB: cdc_acm: Fix oops when Droids MuIn LCD is connected
commit20a5c175ee2efee6a4e7410dc567ec2343e1933f
authorErik Slagter <erik@slagter.name>
Wed, 11 May 2011 10:06:55 +0000 (11 12:06 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 00:32:24 +0000 (3 09:32 +0900)
tree2606b6009b994b1989f27040cf135cb7917bf053
parent9ca086461a130c0733b910fadb8de678018e717d
USB: cdc_acm: Fix oops when Droids MuIn LCD is connected

commit fd5054c169d29747a44b4e1419ff47f57ae82dbc upstream.

The Droids MuIn LCD operates like a serial remote terminal.
Data received are displayed directly on the LCD. This patch
fixes the kernel null pointer oops when it is plugged in.

Add NO_DATA_INTERFACE quirk to tell the driver that "control"
and "data" interfaces are not separated for this device, which
prevents dereferencing a null pointer in the device probe code.

Signed-off-by: Erik Slagter <erik@slagter.name>
Signed-off-by: Maxin B. John <maxin.john@gmail.com>
Tested-by: Erik Slagter <erik@slagter.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-acm.h