summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tcm825x.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-01-26 07:38:01 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-26 07:38:01 +0000
commit31cc3900fbe9058241f7a60ee2dbb595452decda (patch)
treee9fca17429bf9ca25929ac08a563ecf71497690b /linux/drivers/media/video/tcm825x.c
parent839e9bbc0a61d474ab3d48a86b1c5d74b2199dac (diff)
downloadmediapointer-dvb-s2-31cc3900fbe9058241f7a60ee2dbb595452decda.tar.gz
mediapointer-dvb-s2-31cc3900fbe9058241f7a60ee2dbb595452decda.tar.bz2
driver: tcm825x - fix logical typo error
From: Cyrill Gorcunov <gorcunov@gmail.com> This patch does fix potential NULL pointer dereference due to logical typo error. The issue is pointed out by Guennadi Liakhovetski <g.liakhovetski@pengutronix.de> CC: Sakari Ailus <sakari.ailus@nokia.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/tcm825x.c')
-rw-r--r--linux/drivers/media/video/tcm825x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tcm825x.c b/linux/drivers/media/video/tcm825x.c
index 41cd6a0b0..fb895f668 100644
--- a/linux/drivers/media/video/tcm825x.c
+++ b/linux/drivers/media/video/tcm825x.c
@@ -851,7 +851,7 @@ static int tcm825x_probe(struct i2c_client *client)
sensor->platform_data = client->dev.platform_data;
if (sensor->platform_data == NULL
- && !sensor->platform_data->is_okay())
+ || !sensor->platform_data->is_okay())
return -ENODEV;
sensor->v4l2_int_device = &tcm825x_int_device;