mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Tygier <samtygier@yahoo.co.uk>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: David Rientjes <rientjes@google.com>,
	Ike Panhc <ike.pan@canonical.com>,
	Matthew Garrett <mjg@redhat.com>
Subject: Re: 3.1rc10 null pointer dereference ideapad_backlight_notify_power
Date: Mon, 24 Oct 2011 22:51:48 +0100 (BST)	[thread overview]
Message-ID: <1319493108.21408.YahooMailNeo@web25602.mail.ukl.yahoo.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1110192233280.4618@chino.kir.corp.google.com>

>On Thu, 20 Oct 2011, Ike Panhc wrote:
>
>> This issue has been reported[1] and patch[2] is ready.
>> 
>> [1] http://www.mail-archive.com/platform-driver-x86@vger.kernel.org/msg02340.html
>> 
>> [2] http://www.mail-archive.com/platform-driver-x86@vger.kernel.org/msg02343.html
>>    http://www.mail-archive.com/platform-driver-x86@vger.kernel.org/msg02346.html
>> 
>
>It certainly looks like the patch in [2] will fix the issue, but it looks 
>like those are from a couple months ago and I'm still not seeing it in 
>linux-next.  Matthew, how is this going to Linus and will it be cc'd to 
>stable@vger.kernel.org?


the patch works for me (i applied it to kernel between r10 and 3.1 final). for some reason i don't understand i had to apply the patch by hand.


my git diff says:

diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index 0c59541..36953bd 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -492,6 +492,9 @@ static void ideapad_backlight_notify_power(struct ideapad_private *priv)
 {
        unsigned long power;
        struct backlight_device *blightdev = priv->blightdev;
+       
+       if (!blightdev)
+               return;
 
        if (read_ec_data(ideapad_handle, 0x18, &power))
                return;


i am not quite sure of the etiquette, should I repost the patch in its original form, or my version, or can someone else get this included.

thanks

sam


  reply	other threads:[~2011-10-24 21:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-19 11:17 Sam Tygier
2011-10-19 20:20 ` David Rientjes
2011-10-20  1:32   ` Ike Panhc
2011-10-20  5:35     ` David Rientjes
2011-10-24 21:51       ` Sam Tygier [this message]
2011-10-24 23:12         ` David Rientjes

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=1319493108.21408.YahooMailNeo@web25602.mail.ukl.yahoo.com \
    --to=samtygier@yahoo.co.uk \
    --cc=ike.pan@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjg@redhat.com \
    --cc=rientjes@google.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

all inboxes | Powered by JetHome®