]> git.baikalelectronics.ru Git - kernel.git/commit
Fix root mounting with no mount options
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 16 Dec 2019 03:50:23 +0000 (19:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 16 Dec 2019 16:42:39 +0000 (08:42 -0800)
commitc28d5c11dc55f6f2a50194cdc14ec7ecf1222032
tree2110b58dec314ad3e65240a5a9e61efb2aba40e7
parent18ca123f6ebe35a17ec03d9d706c2e230bcf298a
Fix root mounting with no mount options

The "trivial conversion" in commit 7d4e64e1cd48 ("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: Ondřej Jirman <megi@xff.cz>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Reported-and-tested-by: Borislav Petkov <bp@suse.de>
Tested-by: Chris Clayton <chris2553@googlemail.com>
Tested-by: Eric Biggers <ebiggers@kernel.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/do_mounts.c