From 4e65d676806bb31228d1c01efa7e980e0ea0fc3b Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 19 Nov 2009 10:22:25 +0000 Subject: [PATCH] Fix bug preventing pass-through dev handlers be loaded if SCSI_EXEC_REQ_FIFO_DEFINED not defined. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1349 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) */