diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2012-10-30 14:09:41 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-21 19:43:22 (GMT) |
commit | 37e310edf3f6090eb118b7fcafd00221c290ac6b (patch) | |
tree | a2901516ae5c37bdd130b42690b55166b9c3072a /drivers/ata/pata_rz1000.c | |
parent | 832fbb5aec6ec877ed9273a0b20520e3dc0b23b3 (diff) | |
download | linux-fsl-qoriq-37e310edf3f6090eb118b7fcafd00221c290ac6b.tar.xz |
[media] drivers/media/pci/saa7134/saa7134-dvb.c: Test if videobuf_dvb_get_frontend return NULL
Based on commit: e66131cee501ee720b7b58a4b87073b8fbaaaba6
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>
Diffstat (limited to 'drivers/ata/pata_rz1000.c')
0 files changed, 0 insertions, 0 deletions