kernel_optimize_test/drivers/usb/phy
Himangi Saraogi 0c5824083b usb: phy: drop kfree of devm_kzalloc's data
Using kfree to free data allocated with devm_kzalloc causes double frees.

The Coccinelle semantic patch that fixes this problem is as follows:

// <smpl>
@@
expression x;
@@

x = devm_kzalloc(...)
...
?-kfree(x);
// </smpl>

Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-08-19 09:21:34 -05:00
..
am35x-phy-control.h
Kconfig phy: Enable USB PHY support for arm64 2014-05-27 15:58:13 -07:00
Makefile usb: common: rename phy-fsm-usb.c to usb-otg-fsm.c 2014-05-27 15:29:44 -07:00
of.c
phy-ab8500-usb.c
phy-am335x-control.c usb: phy: am335x-control: wait 1ms after power-up transitions 2014-04-21 10:21:24 -05:00
phy-am335x.c usb: phy: am335x: Use SIMPLE_DEV_PM_OPS macro 2014-07-10 08:39:20 -05:00
phy-fsl-usb.c
phy-fsl-usb.h
phy-generic.c usb: phy: generic: allow multiples calls to usb_phy_generic_register() 2014-04-21 14:07:25 -05:00
phy-generic.h usb: phy: rename <linux/usb/usb_phy_gen_xceiv.h> to <linux/usb/usb_phy_generic.h> 2014-04-21 14:07:24 -05:00
phy-gpio-vbus-usb.c usb: phy: drop kfree of devm_kzalloc's data 2014-08-19 09:21:34 -05:00
phy-isp1301-omap.c ARM: OMAP: replace checks for CONFIG_USB_GADGET_OMAP 2014-05-16 14:14:25 -07:00
phy-isp1301.c
phy-keystone.c usb: phy: rename <linux/usb/usb_phy_gen_xceiv.h> to <linux/usb/usb_phy_generic.h> 2014-04-21 14:07:24 -05:00
phy-msm-usb.c usb: patches for v3.17 merge window 2014-07-21 11:33:41 -07:00
phy-mv-usb.c
phy-mv-usb.h
phy-mxs-usb.c usb: phy: mxs: Add sync time after controller clear phcd 2014-03-05 14:40:09 -06:00
phy-omap-otg.c
phy-rcar-gen2-usb.c usb: phy: rcar-gen2-usb: always use 'dev' variable in probe() method 2014-03-05 09:44:48 -06:00
phy-rcar-usb.c
phy-samsung-usb.c
phy-samsung-usb.h
phy-samsung-usb2.c
phy-samsung-usb3.c
phy-tahvo.c
phy-tegra-usb.c usb: patches for v3.17 merge window 2014-07-21 11:33:41 -07:00
phy-twl6030-usb.c phy: omap-usb2: move omap_usb.h from linux/usb/ to linux/phy/ 2014-03-07 21:51:45 +05:30
phy-ulpi-viewport.c
phy-ulpi.c usb: phy: Add SMSC USB334x PHY ID 2014-05-15 10:31:57 -05:00
phy.c usb: phy: return -ENODEV on failure of try_module_get 2014-08-19 09:21:28 -05:00