um: ubd: fix command line handling of ubd
authorHajime Tazaki <thehajime@gmail.com>
Mon, 21 Dec 2020 02:24:34 +0000 (11:24 +0900)
committerRichard Weinberger <richard@nod.at>
Tue, 26 Jan 2021 21:10:44 +0000 (22:10 +0100)
commit94c41b3a7c370b0d6afc5ace8fafa0531865a940
treef4ffbf92ee96bc0a54dfbde41a0ea22f9c91e71c
parent4992eb41ab1b5d08479193afdc94f9678e5ded13
um: ubd: fix command line handling of ubd

This commit fixes a regression to handle command line parameters of ubd.
With a simple line "./linux ubd0="./disk-ext4.img", it fails at
ubd_setup_common().  The commit adds additional checks to the variables
in order to properly parse the paremeters which previously worked.

Fixes: ef3ba87cb7c9 ("um: ubd: Set device serial attribute from cmdline")
Cc: Christopher Obbard <chris.obbard@collabora.com>
Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
Acked-by: Christopher Obbard <chris.obbard@collabora.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/ubd_kern.c