mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Patrizio Bassi <patrizio.bassi@gmail.com>
Cc: kernel list <linux-kernel@vger.kernel.org>, shaohua.li@intel.com
Subject: Re: 2.6.14-git4 suspend fails: kernel NULL pointer dereference
Date: Mon, 7 Nov 2005 19:07:10 +0100	[thread overview]
Message-ID: <20051107180710.GD1710@elf.ucw.cz> (raw)
In-Reply-To: <436F9720.8070008@gmail.com>

Hi!

> >diff --git a/kernel/power/main.c b/kernel/power/main.c
> >--- a/kernel/power/main.c
> >+++ b/kernel/power/main.c
> >@@ -167,7 +167,7 @@ static int enter_state(suspend_state_t s
> > {
> > 	int error;
> > 
> >-	if (pm_ops->valid && !pm_ops->valid(state))
> >+	if (pm_ops && pm_ops->valid && !pm_ops->valid(state))
> > 		return -ENODEV;
> > 	if (down_trylock(&pm_sem))
> > 		return -EBUSY;
> >
> >
> >  
> >
> 
> 
> i'm using ACPI.
> i'?ll try the patch and report asap.

ok, not sure what is going on, then. Fill enter_state() with printks()
so that we know where it fails... then kill klogd before attempting
suspend.
								Pavel
-- 
Thanks, Sharp!

  reply	other threads:[~2005-11-07 18:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20051006072749.GA2393@spitz.ucw.cz>
2005-11-07 16:47 ` Pavel Machek
2005-11-07 18:04   ` Patrizio Bassi
2005-11-07 18:07     ` Pavel Machek [this message]
2005-11-08  7:50       ` Patrizio Bassi
2005-11-08  1:02   ` Shaohua Li
2005-11-08  7:52     ` Patrizio Bassi
2005-11-08  9:12     ` Pavel Machek
2005-11-08 15:19       ` Patrizio
2005-11-08 21:48         ` Pavel Machek
2005-11-09 15:48           ` Patrizio Bassi
2005-11-03  9:09 Patrizio Bassi

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=20051107180710.GD1710@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patrizio.bassi@gmail.com \
    --cc=shaohua.li@intel.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

Powered by JetHome