mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09: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:
committed by
Greg Kroah-Hartman
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;
|
||||
|
||||
Reference in New Issue
Block a user