USB: cdc_acm: Fix oops when Droids MuIn LCD is connected
authorErik Slagter <erik@slagter.name>
Wed, 11 May 2011 10:06:55 +0000 (12:06 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 May 2011 22:14:28 +0000 (15:14 -0700)
commitfd5054c169d29747a44b4e1419ff47f57ae82dbc
treeaa352fe27998b7f1e9bced69d4e46e0990ff891c
parenta9df304cf78d76108196da1ff1dad4d9a5737c2e
USB: cdc_acm: Fix oops when Droids MuIn LCD is connected

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-acm.h