RE: [patch] Staging: dwc2: remove a kfree(NULL)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Dan Carpenter [mailto:dan.carpenter@xxxxxxxxxx]
> Sent: Thursday, March 14, 2013 11:04 PM
> 
> dwc2_hcd_release() calls dwc2_hcd_free() which frees ->core_params
> and sets it to NULL.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> 
> diff --git a/drivers/staging/dwc2/hcd.c b/drivers/staging/dwc2/hcd.c
> index cdb142d..e123f1e 100644
> --- a/drivers/staging/dwc2/hcd.c
> +++ b/drivers/staging/dwc2/hcd.c
> @@ -2939,7 +2939,6 @@ void dwc2_hcd_remove(struct device *dev, struct dwc2_hsotg *hsotg)
>  	usb_remove_hcd(hcd);
>  	hsotg->priv = NULL;
>  	dwc2_hcd_release(hsotg);
> -	kfree(hsotg->core_params);
> 
>  #ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS
>  	kfree(hsotg->last_frame_num_array);

Acked-by: Paul Zimmerman <paulz@xxxxxxxxxxxx>

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux