linux/drivers/media
Dan Carpenter 23e64d5585 V4L/DVB: saa7164: move dereference under NULL check
The original code dereferenced "port" before checking it for NULL.  I
moved the test down below the check.  Also I changed the comparisons a
little so people wouldn't get confused and think "port" and "buf" were
ints instead of pointers.  (Probably that's what lead to this issue in
the first place.)

There is only one caller for this function and it passes non-NULL
pointers, so this is essentially a cleanup rather than a bugfix.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-09-27 22:21:49 -03:00
..
common V4L/DVB: V4L: do not autoselect components on embedded systems 2010-08-08 23:43:02 -03:00
dvb V4L/DVB: opera1: remove unneeded NULL check 2010-09-27 22:21:47 -03:00
IR V4L/DVB: IR: ir-raw-event: null pointer dereference 2010-09-27 22:21:46 -03:00
radio V4L/DVB: si470x: -EINVAL overwritten in si470x_vidioc_s_tuner() 2010-08-02 16:42:44 -03:00
video V4L/DVB: saa7164: move dereference under NULL check 2010-09-27 22:21:49 -03:00
Kconfig
Makefile