UBI: fix volume creation input checking
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
This commit is contained in:
parent
92dcffb916
commit
c5ce5b46af
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue