diff options
| author | Hans de Goede <[email protected]> | 2016-06-14 20:13:06 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-06-14 20:36:23 +0000 |
| commit | 1c4bf5ac6a16d9321b51e91acef481b090e5486b (patch) | |
| tree | f7389ffe173a22975e625af9c9f54bbdd89b4a12 /drivers/usb/musb/sunxi.c | |
| parent | usb: musb: sunxi: Fix NULL ptr deref when gadget is registered before musb (diff) | |
| download | kernel-1c4bf5ac6a16d9321b51e91acef481b090e5486b.tar.gz kernel-1c4bf5ac6a16d9321b51e91acef481b090e5486b.zip | |
usb: musb: sunxi: Remove bogus "Frees glue" comment
The comment is wrong, glue is devm_kzalloc-ed mem attached to the
"allwinner,sun4i-a10-musb" compatible platform-dev. Where as
glue->musb_pdev is a newly created "musb-hdrc" platform-dev.
Signed-off-by: Hans de Goede <[email protected]>
[[email protected]: revise subject prefix]
Signed-off-by: Bin Liu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/musb/sunxi.c')
| -rw-r--r-- | drivers/usb/musb/sunxi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c index dc49041498a3..76500515dd8b 100644 --- a/drivers/usb/musb/sunxi.c +++ b/drivers/usb/musb/sunxi.c @@ -754,7 +754,7 @@ static int sunxi_musb_remove(struct platform_device *pdev) struct sunxi_glue *glue = platform_get_drvdata(pdev); struct platform_device *usb_phy = glue->usb_phy; - platform_device_unregister(glue->musb_pdev); /* Frees glue ! */ + platform_device_unregister(glue->musb_pdev); usb_phy_generic_unregister(usb_phy); return 0; |
