linux/drivers/media/pci/saa7134
Peter Senna Tschudin 37e310edf3 [media] drivers/media/pci/saa7134/saa7134-dvb.c: Test if videobuf_dvb_get_frontend return NULL
Based on commit: e66131cee5
Not testing videobuf_dvb_get_frontend output may cause OOPS if it return
NULL. This patch fixes this issue.
The semantic patch that found this issue is(http://coccinelle.lip6.fr/):
// <smpl>
@@
identifier i,a,b;
statement S, S2;
@@
i = videobuf_dvb_get_frontend(...);
... when != if (!i) S
* if (i->a.b)
S2
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-12-21 17:43:22 -02:00
..
Kconfig
Makefile
saa6752hs.c
saa7134-alsa.c
saa7134-cards.c
saa7134-core.c [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
saa7134-dvb.c [media] drivers/media/pci/saa7134/saa7134-dvb.c: Test if videobuf_dvb_get_frontend return NULL 2012-12-21 17:43:22 -02:00
saa7134-empress.c
saa7134-i2c.c
saa7134-input.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
saa7134-reg.h
saa7134-ts.c
saa7134-tvaudio.c
saa7134-vbi.c
saa7134-video.c [media] saa7134,saa7164: warning: comparison of unsigned fixes 2012-10-28 07:38:48 -02:00
saa7134.h