Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1536212
| From | <Woojung.Huh@microchip.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH 1/1] net: usb: set error code when usb_alloc_urb fails |
| Date | 2016-12-05 17:30 +0100 |
| Message-ID | <sL4jo-6RL-31@gated-at.bofh.it> (permalink) |
| References | <sKgFX-t9-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> Signed-off-by: Pan Bian <bianpan2016@163.com>
> ---
> drivers/net/usb/lan78xx.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
> index db558b8..f33460c 100644
> --- a/drivers/net/usb/lan78xx.c
> +++ b/drivers/net/usb/lan78xx.c
> @@ -3395,6 +3395,7 @@ static int lan78xx_probe(struct usb_interface *intf,
> if (buf) {
> dev->urb_intr = usb_alloc_urb(0, GFP_KERNEL);
> if (!dev->urb_intr) {
> + ret = -ENOMEM;
> kfree(buf);
> goto out3;
> } else {
> --
> 1.9.1
>
Acked-by: Woojung Huh <woojung.huh@microchip.com>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/1] net: usb: set error code when usb_alloc_urb fails Pan Bian <bianpan2016@163.com> - 2016-12-03 12:30 +0100 RE: [PATCH 1/1] net: usb: set error code when usb_alloc_urb fails <Woojung.Huh@microchip.com> - 2016-12-05 17:30 +0100 Re: [PATCH 1/1] net: usb: set error code when usb_alloc_urb fails David Miller <davem@davemloft.net> - 2016-12-05 19:30 +0100
csiph-web