]> git.karo-electronics.de Git - karo-tx-linux.git/commit
UBI: fix nameless volumes handling
authorRichard Weinberger <richard@nod.at>
Fri, 13 Jan 2012 14:07:40 +0000 (15:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 11 Feb 2012 14:38:27 +0000 (15:38 +0100)
commit2e9633af99b28c996ec0d1b53b7503a4dade6d8e
tree424ba57280a9cc5c0eccbb945ca7658285a00a12
parent2533c024c6feaa2deb21fde197de099de70334c3
UBI: fix nameless volumes handling

commit 4a59c797a18917a5cf3ff7ade296b46134d91e6a upstream.

Currently it's possible to create a volume without a name. E.g:
ubimkvol -n 32 -s 2MiB -t static /dev/ubi0 -N ""

After that vtbl_check() will always fail because it does not permit
empty strings.

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/mtd/ubi/cdev.c