linux/drivers/media/video/saa7164
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
..
Kconfig V4L/DVB (12968): saa7164: fix Kconfig: remove HOTPLUG dependency 2009-09-19 00:16:09 -03:00
Makefile
saa7164-api.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
saa7164-buffer.c V4L/DVB: saa7164: move dereference under NULL check 2010-09-27 22:21:49 -03:00
saa7164-bus.c V4L/DVB (12927): SAA7164: Remove volatiles for PCI writes (coding style violation) 2009-09-19 00:14:51 -03:00
saa7164-cards.c V4L/DVB (12946): SAA7164: Add support for a new HVR-2250 hardware revision 2009-09-19 00:15:24 -03:00
saa7164-cmd.c V4L/DVB (13287): ce6230 - saa7164-cmd: Fix wrong sizeof 2009-11-07 12:55:13 -02:00
saa7164-core.c V4L/DVB (13288): adding __init/__exit macros to various drivers 2009-12-05 18:41:12 -02:00
saa7164-dvb.c V4L/DVB (13201): saa7164: disable tda18271 slave tuner output on slave in standby mode 2009-12-05 18:40:51 -02:00
saa7164-fw.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
saa7164-i2c.c V4L/DVB (12976): SAA7164: Removed bus registration messages from driver startup 2009-09-19 00:16:17 -03:00
saa7164-reg.h
saa7164-types.h
saa7164.h media: video: Fix build in saa7164 2009-09-22 18:58:17 -03:00