cdc-wdm: return correct error codes
authorOliver Neukum <oneukum@suse.de>
Fri, 20 Mar 2015 13:28:56 +0000 (14:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 09:50:52 +0000 (10:50 +0100)
commit76cb03e7d5d7ba49175784dce961696da66c44cc
tree7cb27283cacbb68c9924d93e5a2e0e0add77d7a0
parent8373856d94aae5adf25f9e3388747c53867f1ab0
cdc-wdm: return correct error codes

Lieing to user space is wrong. The real reason for a failure
to write should be returned to user space.

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