Whamcloud - gitweb
LU-1155 obdecho: Oops if target device can not be found.
[fs/lustre-release.git] / lustre / obdecho / echo_client.c
index 67b746c..ea9f293 100644 (file)
@@ -783,7 +783,7 @@ static struct lu_device *echo_device_alloc(const struct lu_env *env,
         if (tgt == NULL) {
                 CERROR("Can not find tgt device %s\n",
                         lustre_cfg_string(cfg, 1));
-                GOTO(out, rc);
+                GOTO(out, rc = -ENODEV);
         }
 
         next = tgt->obd_lu_dev;