From 81ad848f2bcd61895b6c7aa95841a1716d942ede Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Sat, 20 Dec 2014 03:48:07 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5941 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index fc80c6db6..55b19ded0 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -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;