Follow up to the previous commit
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Tue, 2 Mar 2010 17:58:44 +0000 (17:58 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Tue, 2 Mar 2010 17:58:44 +0000 (17:58 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1529 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/dev_handlers/scst_modisk.c

index ab347b9..f0989a4 100644 (file)
@@ -229,6 +229,7 @@ static int modisk_attach(struct scst_device *dev)
                if (!--retries) {
                        PRINT_ERROR("UA not cleared after %d retries",
                                    SCST_DEV_UA_RETRIES);
+                       res = -ENODEV;
                        goto out_free_buf;
                }
        }