Re: [PATCH] fix for idiocy in mount_root cleanups.

Alexander Viro (viro@math.psu.edu)
Mon, 10 Dec 2001 06:36:15 -0500 (EST)


On Sun, 9 Dec 2001, Pavel Machek wrote:

> [Calling sys_mount is indeed right way to do this. Ouch, and look 4
> lines above that. Do I see "mount()" without checking error return?]

Yes, you do and yes, it is the right thing. It is called only if we know
that fs is there and the only possible error here is -ENOMEM. And in
that case we will die since mount() attempts in the loop will also fail.
Resulting in immediate panic(). Well deserved-one, at that - if you
manage to OOM before starting init...

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