Fix root mounting with no mount options
The "trivial conversion" in commit cccaa5e3 ("init: use do_mount() instead of ksys_mount()") was totally broken, since it didn't handle the case of a NULL mount data pointer. And while I had "tested" it (and presumably Dominik had too) that bug was hidden by me having options. Cc: Dominik Brodowski <linux@dominikbrodowski.net> Cc: Arnd Bergmann <arnd@arndb.de> Reported-by: NOndřej Jirman <megi@xff.cz> Reported-by: NGuenter Roeck <linux@roeck-us.net> Reported-by: NNaresh Kamboju <naresh.kamboju@linaro.org> Reported-and-tested-by: NBorislav Petkov <bp@suse.de> Tested-by: NChris Clayton <chris2553@googlemail.com> Tested-by: NEric Biggers <ebiggers@kernel.org> Tested-by: NGeert Uytterhoeven <geert@linux-m68k.org> Tested-by: NGuido Günther <agx@sigxcpu.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
Showing
想要评论请 注册 或 登录