From: Cyrill Gorcunov <gorcunov@gmail.com>
To: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Cc: Sakari Ailus <sakari.ailus@nokia.com>,
linux-kernel@vger.kernel.org, video4linux-list@redhat.com
Subject: Re: [MUST-FIX] in today's Linus' git
Date: Tue, 22 Jan 2008 20:14:23 +0300 [thread overview]
Message-ID: <20080122171423.GA6724@cvg> (raw)
In-Reply-To: <Pine.LNX.4.64.0801221601460.6933@axis700.grange>
[Guennadi Liakhovetski - Tue, Jan 22, 2008 at 04:08:15PM +0100]
| Hi
|
| Could someone, please, fix this:
|
| drivers/media/video/tcm825x.c:
|
| 853: if (sensor->platform_data == NULL
| 854: && !sensor->platform_data->is_okay())
|
| I haven't looked through the entire file, so, cannot guarantee, that this
| is the only place. Maybe, someone could review this file and the whole
| commit it came in with properly...
|
| Thanks
| Guennadi
| ---
| Guennadi Liakhovetski
Hi,
i hope this help ;)
- Cyrill -
---
From: Cyrill Gorcunov <gorcunov@gmail.com>
Subject: [PATCH] driver: fix incorrect logical operator
This patch does fix potential NULL pointer dereference
due to incorrect logical operator.
The issue is pointed out by
Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
Index: linux-2.6.git/drivers/media/video/tcm825x.c
===================================================================
--- linux-2.6.git.orig/drivers/media/video/tcm825x.c 2008-01-21 19:35:14.000000000 +0300
+++ linux-2.6.git/drivers/media/video/tcm825x.c 2008-01-22 20:07:21.000000000 +0300
@@ -851,7 +851,7 @@
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;
prev parent reply other threads:[~2008-01-22 17:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-22 15:08 [MUST-FIX] in today's Linus' git Guennadi Liakhovetski
2008-01-22 17:14 ` Cyrill Gorcunov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080122171423.GA6724@cvg \
--to=gorcunov@gmail.com \
--cc=g.liakhovetski@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=sakari.ailus@nokia.com \
--cc=video4linux-list@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox