Fix bug preventing pass-through dev handlers be loaded if SCSI_EXEC_REQ_FIFO_DEFINED...
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 19 Nov 2009 10:22:25 +0000 (10:22 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 19 Nov 2009 10:22:25 +0000 (10:22 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1349 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/scst_main.c

index 25531b9..36626d8 100644 (file)
@@ -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-<kernel-version> 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-<kernel-version>", 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) */