mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
UBI: fix volume creation input checking
commit c5ce5b46af upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
3b4f785d6f
commit
cfc7e54cd1
|
|
@ -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
Block a user