Re: [PATCH] CDC ACM: Fix NULL pointer dereference

2012-08-17 Thread Sven Schnelle
Greg KH writes: > On Fri, Aug 17, 2012 at 08:07:11PM +0200, Sven Schnelle wrote: >> If a device specifies zero endpoints in its interface descriptor, >> the kernel oops's with the following output: >> >> Aug 17 19:32:37 deprecated kernel: [ 103.785466] cdc_acm

Re: [PATCH] CDC ACM: Fix NULL pointer dereference

2012-08-17 Thread Sven Schnelle
Greg KH writes: > On Fri, Aug 17, 2012 at 09:43:43PM +0200, Sven Schnelle wrote: >> Greg KH writes: >> >> > On Fri, Aug 17, 2012 at 08:07:11PM +0200, Sven Schnelle wrote: >> >> If a device specifies zero endpoints in its interface descriptor, >> >

[PATCH] CDC ACM: Fix NULL pointer dereference

2012-08-17 Thread Sven Schnelle
ther we have all endpoints. This is especially bad as this oops can be triggered by just plugging a USB device in. Signed-off-by: Sven Schnelle --- drivers/usb/class/cdc-acm.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index