Re: linux-2.6.0-test5-mm1

From: Andrew Morton
Date: Fri Sep 12 2003 - 13:54:59 EST


Voicu Liviu <pacman@xxxxxxxxxxxxxxx> 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;
}



_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/