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:   Thu, 16 Sep 2021 14:49:28 +0300
From:   Dan Carpenter <dan.carpenter@...cle.com>
To:     "Fabio M. De Francesco" <fmdefrancesco@...il.com>
Cc:     Larry Finger <Larry.Finger@...inger.net>,
        Phillip Potter <phil@...lpotter.co.uk>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Pavel Skripkin <paskripkin@...il.com>,
        linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
        David Laight <david.Laight@...lab.com>
Subject: Re: [PATCH v6 19/19] staging: r8188eu: remove shared buffer for USB
 requests

On Wed, Sep 15, 2021 at 11:11:03PM +0200, Fabio M. De Francesco wrote:
>  static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
>  {
>  	int	i;
> @@ -158,9 +135,6 @@ static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
>  		DBG_88E("NON USB_SPEED_HIGH\n");
>  	}
>  
> -	if (rtw_init_intf_priv(pdvobjpriv) == _FAIL)
> -		goto free_dvobj;
> -
>  	/* 3 misc */
>  	sema_init(&pdvobjpriv->usb_suspend_sema, 0);
>  	rtw_reset_continual_urb_error(pdvobjpriv);
> @@ -169,7 +143,6 @@ static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
>  
>  	status = _SUCCESS;
        ^^^^^^^^^^^^^^^^^

>  
> -free_dvobj:
>  	if (status != _SUCCESS && pdvobjpriv) {
            ^^^^^^^^^^^^^^^^^^
status is going to be _SUCCESS so we can delete this if statement.

>  		usb_set_intfdata(usb_intf, NULL);
>  		kfree(pdvobjpriv);
> @@ -200,7 +173,7 @@ static void usb_dvobj_deinit(struct usb_interface *usb_intf)
>  				usb_reset_device(interface_to_usbdev(usb_intf));
>  			}
>  		}
> -		rtw_deinit_intf_priv(dvobj);
> +
>  		kfree(dvobj);
>  	}

regards,
dan carpenter

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ