]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
cdc-acm: fix NULL pointer reference
authorOliver Neukum <oneukum@suse.com>
Thu, 7 Jan 2016 10:01:00 +0000 (11:01 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Thu, 21 Apr 2016 13:20:31 +0000 (07:20 -0600)
commit90fc1f9f3400ba98b44ad97d3ffeea3e8e260faa
tree875c80843b9abeb328495a3e47d62cbc66823d27
parent45b8809f25c2f06505e0d735749389ab8913f594
cdc-acm: fix NULL pointer reference

BugLink: http://bugs.launchpad.net/bugs/1573034
commit 29c6dd591bbd592472247441de9fa694acdabae8 upstream.

The union descriptor must be checked. Its usage was conditional
before the parser was introduced. This is important, because
many RNDIS device, which also use the common parser, have
bogus extra descriptors.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Tested-by: Vasily Galkin <galkin-vv@yandex.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/usb/cdc_ether.c