From: Cyrill Gorcunov Date: Sat, 26 Jan 2008 10:38:01 +0000 (-0300) Subject: V4L/DVB (7086): driver: tcm825x - fix logical typo error X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0ed464e13e9321de9d1fff356eda58498574272e;p=openwrt%2Fstaging%2Fblogic.git V4L/DVB (7086): driver: tcm825x - fix logical typo error This patch does fix potential NULL pointer dereference due to logical typo error. The issue is pointed out by Guennadi Liakhovetski Signed-off-by: Cyrill Gorcunov CC: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/tcm825x.c b/drivers/media/video/tcm825x.c index 41cd6a0b0485..fb895f6684a3 100644 --- a/drivers/media/video/tcm825x.c +++ b/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;