Re: [OOPS] 2.5.62, bootup, do_add_mount

Andrew Morton (akpm@digeo.com)
Tue, 25 Feb 2003 00:04:48 -0800


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.
-
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/