Commit c5ce5b46 authored by Mika Westerberg's avatar Mika Westerberg Committed by Artem Bityutskiy

UBI: fix volume creation input checking

Do not use an unchecked variable UBI_IOCMKVOL ioctl.
Signed-off-by: default avatarMika Westerberg <ext-mika.1.westerberg@nokia.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Cc: stable@vger.kernel.org
parent 92dcffb9
...@@ -853,7 +853,6 @@ static long ubi_cdev_ioctl(struct file *file, unsigned int cmd, ...@@ -853,7 +853,6 @@ static long ubi_cdev_ioctl(struct file *file, unsigned int cmd,
break; break;
} }
req.name[req.name_len] = '\0';
err = verify_mkvol_req(ubi, &req); err = verify_mkvol_req(ubi, &req);
if (err) if (err)
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment