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

From: Artem Bityutskiy
Date: Sun Jan 15 2012 - 08:13:16 EST


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@xxxxxxxxxxxxxxx>
> Signed-off-by: Richard Weinberger <richard@xxxxxx>

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

Artem.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/