Whamcloud - gitweb
LU-3808 ptlrpc: Return a meaningful status from ptlrpcd_init()
[fs/lustre-release.git] / lustre / mgc / libmgc.c
index b156ebb..c639da8 100644 (file)
@@ -56,7 +56,9 @@ static int mgc_setup(struct obd_device *obd, struct lustre_cfg *lcfg)
         int rc;
         ENTRY;
 
-        ptlrpcd_addref();
+       rc = ptlrpcd_addref();
+       if (rc < 0)
+               RETURN(rc);
 
         rc = client_obd_setup(obd, lcfg);
         if (rc)