lkml.org 
[lkml]   [2004]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Unable to handle kernel NULL pointer dereference
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));
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:59    [from the cache]
©2003-2011 Jasper Spaans