Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0ed464e13e9321de9d1fff356eda58498574272e
Commit:     0ed464e13e9321de9d1fff356eda58498574272e
Parent:     29e4e05041842bca57ec539e51cfeae8948e7320
Author:     Cyrill Gorcunov <[EMAIL PROTECTED]>
AuthorDate: Sat Jan 26 07:38:01 2008 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Mon Feb 18 11:14:57 2008 -0300

    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 <[EMAIL PROTECTED]>
    
    
    Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]>
    CC: Sakari Ailus <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/tcm825x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/tcm825x.c b/drivers/media/video/tcm825x.c
index 41cd6a0..fb895f6 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to