USB: adutux: fix up error paths
authorJohan Hovold <johan@kernel.org>
Fri, 17 Mar 2017 10:35:33 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 12:53:16 +0000 (13:53 +0100)
commite0e9052034e34f2f7016197e27764f3587de87fe
treea92dccfe442568abe0857cf32047c865f639511e
parent15a818f459d2081b17861472b4b953b8a19ea587
USB: adutux: fix up error paths

Make sure to return -ENOMEM on all allocation failures and -EIO on a
string-retrieval error (instead of returning -ENODEV for some such
errors).

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/adutux.c