All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Voicu Liviu <pacman@mscc.huji.ac.il>
Cc: linux-kernel@vger.kernel.org
Subject: Re: linux-2.6.0-test5-mm1
Date: Fri, 12 Sep 2003 11:24:36 -0700	[thread overview]
Message-ID: <20030912112436.03ba9dd1.akpm@osdl.org> (raw)
In-Reply-To: <3F61C062.1080700@mscc.huji.ac.il>

Voicu Liviu <pacman@mscc.huji.ac.il> wrote:
>
> This happens after I load alsa modules on boot..............
> 
> <from_dmesg>
> 
> Freeing unused kernel memory: 308k freed
> Adding 313228k swap on /dev/hda6.  Priority:-1 extents:1
> PCI: Found IRQ 5 for device 0000:00:09.0
> PCI: Sharing IRQ 5 with 0000:00:04.2
> Unable to handle kernel paging request at virtual address ffffffef


diff -puN fs/sysfs/dir.c~sysfs-create_dir-oops-fix fs/sysfs/dir.c
--- 25/fs/sysfs/dir.c~sysfs-create_dir-oops-fix	Wed Sep 10 15:46:50 2003
+++ 25-akpm/fs/sysfs/dir.c	Wed Sep 10 15:46:50 2003
@@ -24,10 +24,11 @@ static int init_dir(struct inode * inode
 static struct dentry * 
 create_dir(struct kobject * k, struct dentry * p, const char * n)
 {
-	struct dentry * dentry;
+	struct dentry *dentry, *ret;
 
 	down(&p->d_inode->i_sem);
 	dentry = sysfs_get_dentry(p,n);
+	ret = dentry;
 	if (!IS_ERR(dentry)) {
 		int error = sysfs_create(dentry,
 					 S_IFDIR| S_IRWXU | S_IRUGO | S_IXUGO,
@@ -36,11 +37,11 @@ create_dir(struct kobject * k, struct de
 			dentry->d_fsdata = k;
 			p->d_inode->i_nlink++;
 		} else
-			dentry = ERR_PTR(error);
+			ret = ERR_PTR(error);
 		dput(dentry);
 	}
 	up(&p->d_inode->i_sem);
-	return dentry;
+	return ret;
 }
 
 

_


  reply	other threads:[~2003-09-12 18:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-12 12:47 linux-2.6.0-test5-mm1 Voicu Liviu
2003-09-12 18:24 ` Andrew Morton [this message]
2003-09-12 23:29   ` linux-2.6.0-test5-mm1 Voicu Liviu
2003-09-12 21:54     ` linux-2.6.0-test5-mm1 Mike Fedyk
2003-09-12 21:53       ` linux-2.6.0-test5-mm1 Andrew Morton

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=20030912112436.03ba9dd1.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pacman@mscc.huji.ac.il \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.