]> www.infradead.org Git - users/jedix/linux-maple.git/commit
USB: CDC ACM: Fix NULL pointer dereference
authorSven Schnelle <svens@stackframe.org>
Fri, 17 Aug 2012 19:43:43 +0000 (21:43 +0200)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 8 Oct 2012 10:52:37 +0000 (03:52 -0700)
commit119b8ece47299941d2c24de9c29baebb626fd8ba
tree03a15097c16c2da9786dd6679f68e9dc74c41ab3
parent0e8345dd519375de36109a319a05f55900a3502a
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 <svens@stackframe.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c