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: ef3ba87c ("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>
Loading
Please register or sign in to comment