android_kernel_xiaomi_sm8350/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
Makefile
saa7164-api.c
saa7164-buffer.c V4L/DVB: saa7164: move dereference under NULL check 2010-09-27 22:21:49 -03:00
saa7164-bus.c
saa7164-cards.c
saa7164-cmd.c
saa7164-core.c
saa7164-dvb.c
saa7164-fw.c
saa7164-i2c.c
saa7164-reg.h
saa7164-types.h
saa7164.h