mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 14:16:31 +00:00
scst_vdisk: Only accept NAA IDs allowed by SPC
See also paragraph 7.8.6.6 NAA designator format in SPC-4. Signed-off-by: Bart Van Assche <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5941 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -8053,7 +8053,7 @@ static ssize_t vdev_sysfs_naa_id_store(struct kobject *kobj,
|
||||
switch (c) {
|
||||
case 0:
|
||||
case 2 * 8:
|
||||
if (strchr("1235cCdDeEfF", buf[0]))
|
||||
if (strchr("235", buf[0]))
|
||||
break;
|
||||
else
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user