> From: Dan Carpenter [mailto:[email protected]]
> 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 <[email protected]>
> 
> 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 <[email protected]>

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to