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:
Vladislav Bolkhovitin
2014-12-20 03:48:07 +00:00
parent 94d1c2fc6c
commit 81ad848f2b
+1 -1
View File
@@ -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;