V4L/DVB (13968): cx18, fix potential null dereference
commite34d375aa6dade342a266d40c6142d7f36e18683
authorJiri Slaby <jslaby@suse.cz>
Sun, 10 Jan 2010 08:56:46 +0000 (10 05:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:35 +0000 (26 15:10 -0300)
tree8737af72cb6026f3625c7e774a1ea7ed27d146fe
parent8231152f74dd9bd6f76036cfd7fbbf94ad0073d8
V4L/DVB (13968): cx18, fix potential null dereference

Stanse found a potential null dereference in cx18_dvb_start_feed
and cx18_dvb_stop_feed. There is a check for stream being NULL,
but it is dereferenced earlier. Move the dereference after the
check.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Reviewed-by: Andy Walls <awalls@radix.net>
Acked-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-dvb.c