kernel-hacking-2024-linux-s.../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
ab3100-core.c
ab3100-otp.c
ab4500-core.c
adp5520.c
asic3.c mfd: tmio_mmc hardware abstraction for CNF area 2010-01-18 12:30:27 +01:00
da903x.c
dm355evm_msp.c
ezx-pcap.c
htc-egpio.c bitops: rename for_each_bit() to for_each_set_bit() 2010-03-06 11:26:23 -08:00
htc-pasic3.c
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
mcp-sa11x0.c
menelaus.c
mfd-core.c
pcf50633-adc.c
pcf50633-core.c
pcf50633-gpio.c
sh_mobile_sdhi.c
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
twl-core.c OMAP4: PMIC: Add support for twl6030 codec 2010-02-24 13:17:03 +00:00
twl4030-codec.c
twl4030-irq.c
twl4030-power.c
twl6030-irq.c
ucb1x00-assabet.c
ucb1x00-core.c
ucb1x00-ts.c
ucb1400_core.c
wm831x-core.c
wm831x-irq.c
wm831x-otp.c
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
wm8350-irq.c
wm8350-regmap.c
wm8400-core.c