Skip to content

Commit

Permalink
V4L/DVB (7086): driver: tcm825x - fix logical typo error
Browse files Browse the repository at this point in the history
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>


Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
CC: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Cyrill Gorcunov authored and Mauro Carvalho Chehab committed Feb 18, 2008
1 parent 29e4e05 commit 0ed464e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/tcm825x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0ed464e

Please sign in to comment.