Re: 2.5.64-bk multiple oops on boot

Brian Davids
2003-03-17T00:58:46Z

Andrew Morton wrote:

> Does this help?
>
> diff -puN fs/devfs/base.c~devfs-oops-fix fs/devfs/base.c
> --- 25/fs/devfs/base.c~devfs-oops-fix 2003-03-16 16:33:16.000000000 -0800
> +++ 25-akpm/fs/devfs/base.c 2003-03-16 16:33:49.000000000 -0800
> @@ -1802,8 +1802,11 @@ int devfs_generate_path (devfs_handle_t
> static struct file_operations *devfs_get_ops (devfs_handle_t de)
> {
> struct file_operations *ops = de->u.cdev.ops;
> - struct module *owner = ops->owner;
> + struct module *owner;
>
> + if (!ops)
> + return NULL;
> + owner = ops->owner;
> read_lock (&de->parent->u.dir.lock); /* Prevent module from unloading */
> if ( (de->next == de) || !try_module_get (owner) )
> { /* Entry is already unhooked or module is unloading */

That fixed it for me... thanks!

Brian Davids