summaryrefslogtreecommitdiffstats
path: root/target/linux/omap24xx/patches-2.6.38/595-cbus-tahvo-usb-leak.patch
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2011-03-09 18:26:03 +0000
committerMichael Büsch <mb@bu3sch.de>2011-03-09 18:26:03 +0000
commit248b64be48e15e45ec5d9c33c2c6a79f1a3ae6c2 (patch)
treeb93d54091c6663395e90a00c105da4c4f4cd1508 /target/linux/omap24xx/patches-2.6.38/595-cbus-tahvo-usb-leak.patch
parentb5a0fd29619b41c9e188f442fee67fb80df78557 (diff)
downloadmaster-31e0f0ae-248b64be48e15e45ec5d9c33c2c6a79f1a3ae6c2.tar.gz
master-31e0f0ae-248b64be48e15e45ec5d9c33c2c6a79f1a3ae6c2.tar.bz2
master-31e0f0ae-248b64be48e15e45ec5d9c33c2c6a79f1a3ae6c2.zip
omap24xx: Split up tahvo usb fixes
SVN-Revision: 25979
Diffstat (limited to 'target/linux/omap24xx/patches-2.6.38/595-cbus-tahvo-usb-leak.patch')
-rw-r--r--target/linux/omap24xx/patches-2.6.38/595-cbus-tahvo-usb-leak.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/omap24xx/patches-2.6.38/595-cbus-tahvo-usb-leak.patch b/target/linux/omap24xx/patches-2.6.38/595-cbus-tahvo-usb-leak.patch
new file mode 100644
index 0000000000..001b912fbc
--- /dev/null
+++ b/target/linux/omap24xx/patches-2.6.38/595-cbus-tahvo-usb-leak.patch
@@ -0,0 +1,22 @@
+Index: linux-2.6.38-rc7/drivers/cbus/tahvo-usb.c
+===================================================================
+--- linux-2.6.38-rc7.orig/drivers/cbus/tahvo-usb.c 2011-03-09 18:51:46.240795227 +0100
++++ linux-2.6.38-rc7/drivers/cbus/tahvo-usb.c 2011-03-09 18:52:34.430126706 +0100
+@@ -725,6 +725,8 @@ static int __init tahvo_usb_probe(struct
+
+ static int __exit tahvo_usb_remove(struct platform_device *pdev)
+ {
++ struct tahvo_usb *tu = platform_get_drvdata(pdev);
++
+ dev_dbg(&pdev->dev, "remove\n");
+
+ tahvo_free_irq(TAHVO_INT_VBUSON);
+@@ -734,6 +736,8 @@ static int __exit tahvo_usb_remove(struc
+ #ifdef CONFIG_USB_OTG
+ device_remove_file(&pdev->dev, &dev_attr_otg_mode);
+ #endif
++
++ kfree(tu);
+ tahvo_usb_device = NULL;
+
+ return 0;