From: Sven Schnelle Date: Fri, 17 Aug 2012 19:43:43 +0000 (+0200) Subject: USB: CDC ACM: Fix NULL pointer dereference X-Git-Tag: v3.2.29~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76e0246b1c62a12db0c9af652be580019ee4666a;p=pandora-kernel.git USB: CDC ACM: Fix NULL pointer dereference commit 99f347caa4568cb803862730b3b1f1942639523f upstream. If a device specifies zero endpoints in its interface descriptor, the kernel oopses in acm_probe(). Even though that's clearly an invalid descriptor, we should test wether 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 Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed