cdc-acm: add sanity checks
authorOliver Neukum <oneukum@suse.de>
Wed, 28 Jan 2015 10:14:55 +0000 (11:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Jan 2015 16:58:38 +0000 (08:58 -0800)
commit7e860a6e7aa62b337a61110430cd633db5b0d2dd
treee5a3d99cb5cd1f66edbffd7eef694588cbcdce0d
parent6b629f2826419ab0fde54d04d97531fe4ce972bf
cdc-acm: add sanity checks

Check the special CDC headers for a plausible minimum length.
Another big operating systems ignores such garbage.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
CC: stable@vger.kernel.org
Reviewed-by: Adam Lee <adam8157@gmail.com>
Tested-by: Adam Lee <adam8157@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c