commit | 410280bac6224e066f4cf0b87db08f0418a135b6 | [log] [tgz] |
---|---|---|
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | Thu Aug 11 16:38:54 2016 +0200 |
committer | Kalle Valo <kvalo@codeaurora.org> | Sat Sep 03 13:06:49 2016 +0300 |
tree | 5f8723a8727ec8b3cfd147f9aab0e751958fa038 | |
parent | 72539799104d4d70c2afcb8f0fe2a7a507a41c81 [diff] |
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: 8b4c0009313f ("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>