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-17929 ptlrpc: ptlrpc_request_alloc_pack() always returns an error code
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
lproc_ptlrpc.c
diff --git
a/lustre/ptlrpc/lproc_ptlrpc.c
b/lustre/ptlrpc/lproc_ptlrpc.c
index
ae29ac3
..
e0a7d1d
100644
(file)
--- a/
lustre/ptlrpc/lproc_ptlrpc.c
+++ b/
lustre/ptlrpc/lproc_ptlrpc.c
@@
-1344,8
+1344,8
@@
ssize_t ping_show(struct kobject *kobj, struct attribute *attr,
if (rc)
RETURN(rc);
- if (
!req
)
- RETURN(
-ENOMEM
);
+ if (
IS_ERR(req)
)
+ RETURN(
PTR_ERR(req)
);
req->rq_send_state = LUSTRE_IMP_FULL;