diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-26 07:38:01 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-26 07:38:01 +0000 |
commit | 31cc3900fbe9058241f7a60ee2dbb595452decda (patch) | |
tree | e9fca17429bf9ca25929ac08a563ecf71497690b /linux/drivers/media/video/tcm825x.c | |
parent | 839e9bbc0a61d474ab3d48a86b1c5d74b2199dac (diff) | |
download | mediapointer-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.c | 2 |
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; |