init: Fix NULL dereference crash in "init: Use do_mount() instead of ksys_mount()"

Duh. So much for the trivial obvious conversion.

It didn't take "data might be NULL" into account.

A patch like this, perhaps? Untested..

Fixes: cccaa5e33525f init: use do_mount() instead of ksys_mount()
Cc: Linus Torvalds <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Signed-off-by: Ingo Molnar <>
1 file changed