]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (13968): cx18, fix potential null dereference
authorJiri Slaby <jslaby@suse.cz>
Sun, 10 Jan 2010 08:56:46 +0000 (05:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:35 +0000 (15:10 -0300)
commitf85352b1bdc5dca74c94a764b0cd9954e8c2cbd7
tree8737af72cb6026f3625c7e774a1ea7ed27d146fe
parentc1ce48debd69b5a3e96c9bebb3ae219a1ba9e3b2
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