linux/drivers/usb/class
David Brownell c6dbf554bc USB: cdc-acm: signedness fix
Fix bogus assignment of "unsigned char *" to "char *":  preserve
unsignedness.  These values are used directly as descriptor lengths
when iterating through the buffer, so this *could* cause oddness
that potentially includes oopsing.  (IMO not likely, except as
part of a malicious device...)

Fix the bogus warning in CDC ACM which highlighted this problem
(by showing a negative descriptor type).  It uses the undesirable
legacy err() for something that's not even an error; switch to
use dev_dbg, and show descriptor types in hex notation to match
the convention for such codes.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-04-24 21:16:53 -07:00
..
Kconfig [PATCH] USB: remove OBSOLETE_OSS_USB_DRIVER drivers 2006-03-20 14:49:54 -08:00
Makefile [PATCH] USB: remove OBSOLETE_OSS_USB_DRIVER drivers 2006-03-20 14:49:54 -08:00
cdc-acm.c USB: cdc-acm: signedness fix 2008-04-24 21:16:53 -07:00
cdc-acm.h USB: increase cdc-acm write throughput 2008-04-24 21:16:44 -07:00
usblp.c USB: fix pm counter leak in usblp 2008-02-21 15:38:48 -08:00