diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index d4f781d1a..71be58f89 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -1268,6 +1268,7 @@ static int __scst_process_luns_mgmt_store(char *buffer, goto out_unlock; } else if (virt_lun > SCST_MAX_LUN) { PRINT_ERROR("Too big LUN %ld (max %d)", virt_lun, SCST_MAX_LUN); + res = -EINVAL; goto out_unlock; }