Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-3808 ptlrpc: Return a meaningful status from ptlrpcd_init()
[fs/lustre-release.git]
/
lustre
/
mgc
/
libmgc.c
diff --git
a/lustre/mgc/libmgc.c
b/lustre/mgc/libmgc.c
index
b156ebb
..
c639da8
100644
(file)
--- a/
lustre/mgc/libmgc.c
+++ b/
lustre/mgc/libmgc.c
@@
-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)