001b912fbc49c7f376c744ff1e6cbaf0f26a324f
[openwrt.git] / target / linux / omap24xx / patches-2.6.38 / 595-cbus-tahvo-usb-leak.patch
1 Index: linux-2.6.38-rc7/drivers/cbus/tahvo-usb.c
2 ===================================================================
3 --- linux-2.6.38-rc7.orig/drivers/cbus/tahvo-usb.c 2011-03-09 18:51:46.240795227 +0100
4 +++ linux-2.6.38-rc7/drivers/cbus/tahvo-usb.c 2011-03-09 18:52:34.430126706 +0100
5 @@ -725,6 +725,8 @@ static int __init tahvo_usb_probe(struct
6
7 static int __exit tahvo_usb_remove(struct platform_device *pdev)
8 {
9 + struct tahvo_usb *tu = platform_get_drvdata(pdev);
10 +
11 dev_dbg(&pdev->dev, "remove\n");
12
13 tahvo_free_irq(TAHVO_INT_VBUSON);
14 @@ -734,6 +736,8 @@ static int __exit tahvo_usb_remove(struc
15 #ifdef CONFIG_USB_OTG
16 device_remove_file(&pdev->dev, &dev_attr_otg_mode);
17 #endif
18 +
19 + kfree(tu);
20 tahvo_usb_device = NULL;
21
22 return 0;
This page took 0.044258 seconds and 3 git commands to generate.