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 <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 file changed