From: Dan Carpenter Date: Fri, 15 Mar 2013 06:03:31 +0000 (+0300) Subject: Staging: dwc2: remove a kfree(NULL) X-Git-Tag: firefly_0821_release~3680^2~674^2~593 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=673f98ccacf6fdf1f023531c2782b3887bc664a3;p=firefly-linux-kernel-4.4.55.git Staging: dwc2: remove a kfree(NULL) dwc2_hcd_release() calls dwc2_hcd_free() which frees ->core_params and sets it to NULL. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dwc2/hcd.c b/drivers/staging/dwc2/hcd.c index 246b483481fa..01dbdd85c725 100644 --- a/drivers/staging/dwc2/hcd.c +++ b/drivers/staging/dwc2/hcd.c @@ -2940,7 +2940,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);