]> Pileus Git - ~andy/linux/commit
USB: cdc-wdm: sanitize error returns
authorOliver Neukum <oliver@neukum.org>
Fri, 27 Apr 2012 12:23:54 +0000 (14:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Apr 2012 01:53:41 +0000 (21:53 -0400)
commit24a85bae5da2b43fed423859c09c5a81ab359473
tree0a114eefc3881666d84115ecf3e6a77a8f133d1c
parent4212cd74ca6f0c42f5a0065797dd1c310a485ad8
USB: cdc-wdm: sanitize error returns

wdm_flush() returns unsanitized USB error codes.
They must be cleaned up to before being anded to user space

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-wdm.c