GIT: unionfs2-2.6.27.y: UBI: fix volume creation input checking
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:15:03 EDT 2010
commit 69f4dd6978cc487e49360c50dce75a267a99f3d5
Author: Mika Westerberg <ext-mika.1.westerberg at nokia.com>
Date: Tue Jan 26 17:47:05 2010 +0200
UBI: fix volume creation input checking
commit c5ce5b46af76f52dea21f467397d24c4ae6cb3ff upstream.
Do not use an unchecked variable UBI_IOCMKVOL ioctl.
Signed-off-by: Mika Westerberg <ext-mika.1.westerberg at nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index 03c759b..82dfbe5 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -793,7 +793,6 @@ static int ubi_cdev_ioctl(struct inode *inode, struct file *file,
break;
}
- req.name[req.name_len] = '\0';
err = verify_mkvol_req(ubi, &req);
if (err)
break;
More information about the unionfs-cvs
mailing list