summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_host.h
diff options
context:
space:
mode:
authorBrian Downing2012-08-05 01:32:19 +0200
committerFelipe Balbi2012-08-07 13:26:17 +0200
commitdecadacbd7259b1dce0aeb9cb4468432edf88fb4 (patch)
treeffeb4c3de8176a69a54b733490f43c6ae26ba0cf /drivers/usb/musb/musb_host.h
parentusb: musb: fix sparse warnings (diff)
downloadkernel-qcow2-linux-decadacbd7259b1dce0aeb9cb4468432edf88fb4.tar.gz
kernel-qcow2-linux-decadacbd7259b1dce0aeb9cb4468432edf88fb4.tar.xz
kernel-qcow2-linux-decadacbd7259b1dce0aeb9cb4468432edf88fb4.zip
usb: musb: Fix bad call to kfree() in musb_free
Commit 622859634a663c5e55d0e2a2cdbb55ac058d97b3 (usb: musb: drop a gigantic amount of ifdeferry) included this change: @@ -1901,11 +1844,7 @@ static void musb_free(struct musb *musb) dma_controller_destroy(c); } -#ifdef CONFIG_USB_MUSB_HDRC_HCD - usb_put_hcd(musb_to_hcd(musb)); -#else kfree(musb); -#endif } /* Since musb comes from struct usb_hcd's hcd_priv, which is allocated on the end of that struct, kfree'ing it is not going to work. Replace kfree(musb) with usb_put_hcd(musb_to_hcd(musb)), which appears to be the right thing to do here. Signed-off-by: Brian Downing <bdowning@lavos.net> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_host.h')
0 files changed, 0 insertions, 0 deletions