USB: cdc-acm: check for valid interfaces
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 16:48:15 +0000 (08:48 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Jan 2015 14:59:32 +0000 (06:59 -0800)
commit77e2e4877b2000379a5e525d51e79e6705ce242d
tree5b856dbd3c0a80c1ad0c7501e81d0d41638d2a9e
parent628b776115aa817dddee83c29fde3ba7fe806a96
USB: cdc-acm: check for valid interfaces

commit 403dff4e2c94f275e24fd85f40b2732ffec268a1 upstream.

We need to check that we have both a valid data and control inteface for both
types of headers (union and not union.)

References: https://bugzilla.kernel.org/show_bug.cgi?id=83551
Reported-by: Simon Schubert <2+kernel@0x2c.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c