From: Mika Westerberg Date: Tue, 26 Jan 2010 15:47:05 +0000 (+0200) Subject: UBI: fix volume creation input checking X-Git-Tag: MMI-PSA29.97-13-9~25073^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5ce5b46af76f52dea21f467397d24c4ae6cb3ff;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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;