1
linux/drivers/mfd
Julia Lawall 0e820ab601 mfd: Correct use after free for t7l66xb
The structure t7l66xb should not be freed before the subsequent references
to its fields in the arguments to clk_put.  Furthermore, this structure is
allocated near the beginning of the function, and a goto to the label
err_noirq appears after a successful allocation, so it would seem that the
kfree should be moved down below this label.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,e;
identifier f;
iterator I;
statement S;
@@

*kfree(x);
... when != &x
    when != x = e
    when != I(x,...) S
*x->f
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
2010-03-07 22:16:55 +01:00
..
88pm8607.c mfd: Add 88PM8607 driver 2009-12-13 19:20:37 +01:00
ab3100-core.c mfd: Don't abuse i2c_client.name 2009-12-13 19:20:40 +01:00
ab3100-otp.c mfd: AB3100 OTP readout 2009-09-17 09:47:21 +02:00
ab4500-core.c mfd: Fix ab4500 compilation warnings 2009-12-13 19:20:39 +01:00
adp5520.c mfd: Staticise __adp5520_ack_bits() 2009-12-13 19:21:26 +01:00
asic3.c mfd: tmio_mmc hardware abstraction for CNF area 2010-01-18 12:30:27 +01:00
da903x.c mfd: early init for MFD running regulators 2009-06-17 19:41:54 +02:00
dm355evm_msp.c mfd: Correct ro and cd implemantion on DM355 2009-09-17 09:46:54 +02:00
ezx-pcap.c mfd: ezx-pcap: Don't pass pcap pointer as subdev drvdata. 2009-12-13 19:21:38 +01:00
htc-egpio.c bitops: rename for_each_bit() to for_each_set_bit() 2010-03-06 11:26:23 -08:00
htc-pasic3.c mfd: remove driver_data direct access of struct device 2009-06-15 21:30:27 -07:00
Kconfig Merge with mainline to remove plat-omap/Kconfig conflict 2010-03-01 14:19:05 -08:00
Makefile V4L/DVB: mfd: Add support for the timberdale FPGA 2010-02-26 15:10:56 -03:00
mc13783-core.c mfd/mc13783: new function reading irq mask and status register 2010-03-06 11:26:47 -08:00
mcp-core.c move drivers/mfd/*.h to include/linux/mfd 2009-11-27 21:07:18 +01:00
mcp-sa11x0.c add gpiolib support to ucb1x00 2009-11-27 21:07:21 +01:00
menelaus.c omap: headers: Move remaining headers from include/mach to include/plat 2009-10-20 09:40:47 -07:00
mfd-core.c mfd: Allow multiple MFD cells with the same name 2009-09-17 09:46:56 +02:00
pcf50633-adc.c mfd: Fix memleak in pcf50633_client_dev_register 2009-12-13 19:21:17 +01:00
pcf50633-core.c mfd: Cleanup pcf50633_probe error handling 2009-12-13 19:21:28 +01:00
pcf50633-gpio.c mfd/pcf50633-gpio.c: add MODULE_LICENSE 2009-06-17 19:41:30 +02:00
sh_mobile_sdhi.c mfd: Add power control platform data to SDHI driver 2009-11-30 12:01:24 +09:00
sm501.c mfd: Use resource_size() in sm501 2010-03-07 22:16:52 +01:00
t7l66xb.c mfd: Correct use after free for t7l66xb 2010-03-07 22:16:55 +01:00
tc6387xb.c mfd: tmio_mmc hardware abstraction for CNF area 2010-01-18 12:30:27 +01:00
tc6393xb.c mfd: Use resouce_size for tc6393xb 2010-03-07 22:16:54 +01:00
timberdale.c V4L/DVB: mfd: Add timb-radio to the timberdale MFD 2010-02-26 15:11:03 -03:00
timberdale.h V4L/DVB: mfd: Add support for the timberdale FPGA 2010-02-26 15:10:56 -03:00
tmio_core.c mfd: tmio_mmc hardware abstraction for CNF area 2010-01-18 12:30:27 +01:00
tps65010.c mfd: Allow configuration of VDCDC2 for tps65010 2009-12-13 19:21:36 +01:00
twl4030-codec.c mfd: compile fix for twl4030 renaming 2009-12-15 09:33:36 -08:00
twl4030-irq.c twl4030-irq.c: fix compiler warning due to raw-spinlock conversion 2009-12-31 17:26:05 -08:00
twl4030-power.c mfd: Rename all twl4030_i2c* 2009-12-13 21:23:33 +01:00
twl6030-irq.c mfd: Add support for twl6030 irq framework 2009-12-14 00:25:31 +01:00
twl-core.c OMAP4: PMIC: Add support for twl6030 codec 2010-02-24 13:17:03 +00:00
ucb1x00-assabet.c move drivers/mfd/*.h to include/linux/mfd 2009-11-27 21:07:18 +01:00
ucb1x00-core.c add gpiolib support to ucb1x00 2009-11-27 21:07:21 +01:00
ucb1x00-ts.c move drivers/mfd/*.h to include/linux/mfd 2009-11-27 21:07:18 +01:00
ucb1400_core.c Input: ucb1400_ts - allow passing IRQ through platfrom_data 2009-11-20 00:52:05 -08:00
wm831x-core.c Merge git://git.infradead.org/battery-2.6 2009-12-15 08:59:33 -08:00
wm831x-irq.c mfd: Move WM831x to generic IRQ 2009-12-13 19:21:41 +01:00
wm831x-otp.c mfd: Add basic WM831x OTP support 2009-09-17 09:46:59 +02:00
wm8350-core.c mfd: WM835x GPIO direction register is not locked 2010-01-18 12:30:28 +01:00
wm8350-gpio.c
wm8350-i2c.c mfd: Add WM8351 support 2009-01-04 12:17:42 +01:00
wm8350-irq.c mfd: WM8350 off by one bug 2010-01-18 12:30:26 +01:00
wm8350-regmap.c mfd: Remove build time warning for WM835x register default tables 2009-12-13 19:21:53 +01:00
wm8400-core.c mfd: early init for MFD running regulators 2009-06-17 19:41:54 +02:00