diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-03-15 06:03:31 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 16:05:36 (GMT) |
commit | 673f98ccacf6fdf1f023531c2782b3887bc664a3 (patch) | |
tree | 597d38166cbda7b8bd05f76ad4797f5bb1ee9659 | |
parent | 13b47d5f79f76293abda13c8b39570659bb9e9ca (diff) | |
download | linux-673f98ccacf6fdf1f023531c2782b3887bc664a3.tar.xz |
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 <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/dwc2/hcd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/dwc2/hcd.c b/drivers/staging/dwc2/hcd.c index 246b483..01dbdd8 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); |