1
0
Fork 0
alistair23-linux/drivers/net/wireless/ralink
Christophe Jaillet 410280bac6 rt2x00usb: Fix error return code
We know that 'retval = 0' because it has been tested a few lines above.
So, if 'devm_kmalloc' fails, 0 will be returned instead of an error code.
Return -ENOMEM instead.

Fixes: 8b4c000931 ("rt2x00usb: Use usb anchor to manage URB")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2016-09-03 13:06:49 +03:00
..
rt2x00 rt2x00usb: Fix error return code 2016-09-03 13:06:49 +03:00
Kconfig rt2x00: move under ralink vendor directory 2015-11-18 14:28:31 +02:00
Makefile rt2x00: move under ralink vendor directory 2015-11-18 14:28:31 +02:00