From 85aa95c4158ae177922c302d8f627d9bb1b85fcb Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 2 Mar 2010 17:58:44 +0000 Subject: [PATCH] Follow up to the previous commit git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1529 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_modisk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scst/src/dev_handlers/scst_modisk.c b/scst/src/dev_handlers/scst_modisk.c index ab347b914..f0989a416 100644 --- a/scst/src/dev_handlers/scst_modisk.c +++ b/scst/src/dev_handlers/scst_modisk.c @@ -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; } }