lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 5 Dec 2016 16:20:27 +0000
From:   <Woojung.Huh@...rochip.com>
To:     <bianpan2016@....com>, <UNGLinuxDriver@...rochip.com>,
        <netdev@...r.kernel.org>, <linux-usb@...r.kernel.org>
CC:     <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 1/1] net: usb: set error code when usb_alloc_urb fails

> Signed-off-by: Pan Bian <bianpan2016@....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@...rochip.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ