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)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:21:06 +0000 (12:21 -0500)
commit20409bf47d10343dc9dd04abe9287eee95efd281
tree26fb1ec3ee059e1986f1704b14f465f05a35233c
parent7b54e81b4b09b2e6fe54e3c4cce78a46f7c62f2e
USB: cdc_acm: Fix oops when Droids MuIn LCD is connected

BugLink: http://bugs.launchpad.net/bugs/793702

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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-acm.h