Re: [OOPS] 2.5.62, bootup, do_add_mount

Andrew Morton
2003-02-25T07:54:18Z

Maneesh Soni <maneesh@in.ibm.com> wrote:
>
>
> Hi Peter,
>
> presto_get_sb() is returning error resulting in the following NULL
> pointer reference in do_kern_mount(). The following patch corrects
> it.
>

It should be returning some ERR_PTR value. Seems that presto_get_sb() isn't
very careful in tracking the reason for the failed mount, so

return ERR_PTR(-EINVAL);

should suffice.