From: Mika Westerberg Date: Tue, 26 Jan 2010 15:47:05 +0000 (+0200) Subject: UBI: fix volume creation input checking X-Git-Tag: upstream/snapshot3+hdmi~15768^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5ce5b46af76f52dea21f467397d24c4ae6cb3ff;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 f237ddb..111ea41 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;