Revision 4b3be6afa4ab8b3fdce39df68bad71f8b85164de authored by Julia Lawall on 17 October 2009, 06:33:22 UTC, committed by Takashi Iwai on 30 October 2009, 11:01:27 UTC
In pcm.c, if the NULL test on pcm is needed, then the dereference should be after the NULL test. In dummy.c and ali5451.c, the context of the calls to snd_card_dummy_new_mixer and snd_ali_free_voice show that dummy and pvoice, respectively cannot be NULL. A simplified version of the semantic match that detects this problem is as follows (http://coccinelle.lip6.fr/): // <smpl> @match exists@ expression x, E; identifier fld; @@ * x->fld ... when != \(x = E\|&x\) * x == NULL // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent b71207e
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 9.3 KB |
Makefile | -rw-r--r-- | 1.7 KB |
led-class.c | -rw-r--r-- | 5.7 KB |
led-core.c | -rw-r--r-- | 578 bytes |
led-triggers.c | -rw-r--r-- | 6.8 KB |
leds-alix2.c | -rw-r--r-- | 3.7 KB |
leds-ams-delta.c | -rw-r--r-- | 2.9 KB |
leds-atmel-pwm.c | -rw-r--r-- | 3.7 KB |
leds-bd2802.c | -rw-r--r-- | 20.7 KB |
leds-clevo-mail.c | -rw-r--r-- | 5.5 KB |
leds-cobalt-qube.c | -rw-r--r-- | 2.2 KB |
leds-cobalt-raq.c | -rw-r--r-- | 3.2 KB |
leds-da903x.c | -rw-r--r-- | 4.4 KB |
leds-dac124s085.c | -rw-r--r-- | 3.4 KB |
leds-fsg.c | -rw-r--r-- | 5.1 KB |
leds-gpio.c | -rw-r--r-- | 7.8 KB |
leds-h1940.c | -rw-r--r-- | 3.7 KB |
leds-hp6xx.c | -rw-r--r-- | 2.4 KB |
leds-locomo.c | -rw-r--r-- | 2.3 KB |
leds-lp3944.c | -rw-r--r-- | 11.1 KB |
leds-net48xx.c | -rw-r--r-- | 2.1 KB |
leds-pca9532.c | -rw-r--r-- | 9.1 KB |
leds-pca955x.c | -rw-r--r-- | 9.7 KB |
leds-pwm.c | -rw-r--r-- | 3.5 KB |
leds-rb532.c | -rw-r--r-- | 1.7 KB |
leds-s3c24xx.c | -rw-r--r-- | 3.3 KB |
leds-sunfire.c | -rw-r--r-- | 5.9 KB |
leds-wm831x-status.c | -rw-r--r-- | 7.7 KB |
leds-wm8350.c | -rw-r--r-- | 5.9 KB |
leds-wrap.c | -rw-r--r-- | 3.2 KB |
leds.h | -rw-r--r-- | 1.5 KB |
ledtrig-backlight.c | -rw-r--r-- | 2.4 KB |
ledtrig-default-on.c | -rw-r--r-- | 1.0 KB |
ledtrig-gpio.c | -rw-r--r-- | 6.1 KB |
ledtrig-heartbeat.c | -rw-r--r-- | 3.1 KB |
ledtrig-ide-disk.c | -rw-r--r-- | 1.6 KB |
ledtrig-timer.c | -rw-r--r-- | 6.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...