[PATCH] UBI: Handle empty string in verify_mkvol_req()

Artem Bityutskiy dedekind1 at gmail.com
Sun Jan 15 08:13:00 EST 2012


On Fri, 2012-01-13 at 15:07 +0100, Richard Weinberger wrote:
> 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.
> 
> Cc: <stable at vger.kernel.org>
> Signed-off-by: Richard Weinberger <richard at nod.at>

Well-spotted, thank you! I'll send it to Linus soon, as well as the
other patch of yours.

Artem.




More information about the linux-mtd mailing list