From: Mika Westerberg Date: Tue, 26 Jan 2010 15:47:05 +0000 (+0200) Subject: UBI: fix volume creation input checking X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5ce5b46af76f52dea21f467397d24c4ae6cb3ff;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git UBI: fix volume creation input checking Do not use an unchecked variable UBI_IOCMKVOL ioctl. Signed-off-by: Mika Westerberg Signed-off-by: Artem Bityutskiy Cc: stable@vger.kernel.org --- diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index f237ddbb2713..111ea41c4ecd 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c @@ -853,7 +853,6 @@ static long ubi_cdev_ioctl(struct file *file, unsigned int cmd, break; } - req.name[req.name_len] = '\0'; err = verify_mkvol_req(ubi, &req); if (err) break;