staging: most: usb: use correct error codes
authorChristian Gromm <christian.gromm@microchip.com>
Wed, 27 May 2020 09:06:25 +0000 (11:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 10:26:13 +0000 (12:26 +0200)
commitf470a5b01bab175dc14ac078ffe1130ae975a6fd
tree10926b23da2dbb74f7b6336e6bef459afc5ca8f7
parent1fd4fb8c62d34db0d82bbb948b4cfd006c9256fb
staging: most: usb: use correct error codes

This patch uses the -EINVAL return code where -EFAULT is wrongly being
used.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/1590570387-27069-9-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/usb/usb.c