Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1460588
| From | Stanislaw Gruszka <sgruszka@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] rt2x00usb: Fix error return code |
| Date | 2016-08-11 17:00 +0200 |
| Message-ID | <s4ZCF-58o-15@gated-at.bofh.it> (permalink) |
| References | <s4Zjj-51o-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Aug 11, 2016 at 04:38:54PM +0200, Christophe JAILLET wrote:
> 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>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] rt2x00usb: Fix error return code Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2016-08-11 16:40 +0200 Re: [PATCH] rt2x00usb: Fix error return code Stanislaw Gruszka <sgruszka@redhat.com> - 2016-08-11 17:00 +0200
csiph-web