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-12685 llite: fix check for mem-alloc failure.
[fs/lustre-release.git]
/
lustre
/
llite
/
statahead.c
diff --git
a/lustre/llite/statahead.c
b/lustre/llite/statahead.c
index
d2ba2b0
..
92c7ca8
100644
(file)
--- a/
lustre/llite/statahead.c
+++ b/
lustre/llite/statahead.c
@@
-1005,8
+1005,8
@@
static int ll_statahead_thread(void *arg)
sai, parent->d_name.len, parent->d_name.name);
OBD_ALLOC_PTR(op_data);
- if (
IS_ERR(op_data)
)
- GOTO(out, rc =
PTR_ERR(op_data)
);
+ if (
!op_data
)
+ GOTO(out, rc =
-ENOMEM
);
if (sbi->ll_flags & LL_SBI_AGL_ENABLED)
ll_start_agl(parent, sai);