cdc-acm: fix NULL pointer reference
authorOliver Neukum <oneukum@suse.com>
Thu, 7 Jan 2016 10:01:00 +0000 (11:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Jan 2016 02:00:24 +0000 (21:00 -0500)
commit29c6dd591bbd592472247441de9fa694acdabae8
tree276191fdf11533c762892bd326547731c1dfdebb
parent5ee3c60c8d3b88cab6496c9b7d49a01576dd9cf9
cdc-acm: fix NULL pointer reference

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>
drivers/net/usb/cdc_ether.c