diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index 25531b983..36626d891 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -1049,14 +1049,16 @@ int __scst_register_dev_driver(struct scst_dev_type *dev_type, "supported. Consider applying on your kernel patch " "scst_exec_req_fifo- or define " "CONFIG_SCST_STRICT_SERIALIZING", dev_type->name); + res = -EINVAL; + goto out_error; #endif /* !defined(CONFIG_SCST_STRICT_SERIALIZING) */ #else /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30) */ PRINT_ERROR("Pass-through dev handlers (handler \"%s\") not " "supported. Consider applying on your kernel patch " "scst_exec_req_fifo-", dev_type->name); -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30) */ res = -EINVAL; goto out_error; +#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30) */ } #endif /* !defined(SCSI_EXEC_REQ_FIFO_DEFINED) */