mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: "Eduard <master^shadow> Roccatello"  <lilo.please.no.spam@roccatello.it>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Unable to handle kernel NULL pointer dereference
Date: Thu, 1 Jan 2004 17:32:38 -0800	[thread overview]
Message-ID: <20040102013238.GC19598@kroah.com> (raw)
In-Reply-To: <200401011944.51109.lilo.please.no.spam@roccatello.it>

On Thu, Jan 01, 2004 at 07:44:50PM +0100, Eduard <master^shadow> Roccatello wrote:
> Hi there,
> 
> i got an oops on USB mouse disconnect. i have tried to reproduce the oops 
> but it happened only once. I'm running 2.6.0 vanilla with nvidia binary 
> drivers but they not seems to be involved in the oops (imho).
> USB modules i use are: hid, hcd-ohci, hcd-ehci

There is a patch in the -mm tree to fix this.  I've included it here
below.

thanks,

greg k-h


diff -Nru a/fs/sysfs/dir.c b/fs/sysfs/dir.c
--- a/fs/sysfs/dir.c	Mon Dec 22 16:02:07 2003
+++ b/fs/sysfs/dir.c	Mon Dec 22 16:02:07 2003
@@ -83,7 +83,8 @@
 	struct dentry * parent = dget(d->d_parent);
 	down(&parent->d_inode->i_sem);
 	d_delete(d);
-	simple_rmdir(parent->d_inode,d);
+	if (d->d_inode)
+		simple_rmdir(parent->d_inode,d);
 
 	pr_debug(" o %s removing done (%d)\n",d->d_name.name,
 		 atomic_read(&d->d_count));

  reply	other threads:[~2004-01-02  1:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-01 18:44 Eduard <master^shadow> Roccatello
2004-01-02  1:32 ` Greg KH [this message]
2004-01-03  9:47   ` Michael Stucki
2004-01-07 21:06     ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2004-07-19 19:23 Nicolas Ross
2004-07-20  4:07 ` Randy.Dunlap
2002-04-05  7:42 Umaid Singh Rajpurohit

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=20040102013238.GC19598@kroah.com \
    --to=greg@kroah.com \
    --cc=lilo.please.no.spam@roccatello.it \
    --cc=linux-kernel@vger.kernel.org \
    /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