Make LUN removal work again. This is a fix for r4137.

Reported-by: Riccardo <r.bicelli@gmail.com>

Signed-off-by: Bart Van Assche <bvanassche@acm.org>




git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4157 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-03-07 19:51:15 +00:00
parent 7d1ba6a2b0
commit a095641495

View File

@@ -1259,6 +1259,7 @@ static int __scst_process_luns_mgmt_store(char *buffer,
break;
}
case SCST_LUN_ACTION_DEL:
p = scst_get_next_lexem(&pp);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)
res = kstrtoul(p, 0, &virt_lun);
#else