Skip to content

Commit

Permalink
UBI: fix volume creation input checking
Browse files Browse the repository at this point in the history
Do not use an unchecked variable UBI_IOCMKVOL ioctl.

Signed-off-by: Mika Westerberg <ext-mika.1.westerberg@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Mika Westerberg authored and Artem Bityutskiy committed Jan 27, 2010
1 parent 92dcffb commit c5ce5b4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mtd/ubi/cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c5ce5b4

Please sign in to comment.