UPSTREAM: USB: cdc-wdm: sanitize error returns
authorOliver Neukum <oliver@neukum.org>
Fri, 27 Apr 2012 12:23:54 +0000 (14:23 +0200)
committerGerrit <chrome-bot@google.com>
Tue, 16 Oct 2012 21:10:46 +0000 (14:10 -0700)
commit6529110fc9f252acf4bda1a15d65e472a0c690e3
treeaa8a72e02d95aba530a51111bbf84ea78ca0fc1f
parentf985239526cf0593227166a39e453703b0ec0869
UPSTREAM: 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>
(cherry picked from commit 24a85bae5da2b43fed423859c09c5a81ab359473)

Change-Id: Ie56272c988fb62601bb50ce60753733467cc25f8
Signed-off-by: Ben Chan <benchan@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/35150
Reviewed-by: Olof Johansson <olofj@chromium.org>
drivers/usb/class/cdc-wdm.c