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; } }