Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4c3de2
)
Don't dereference NULL lock in error path
author
phil
<phil>
Mon, 1 Mar 2004 18:16:43 +0000
(18:16 +0000)
committer
phil
<phil>
Mon, 1 Mar 2004 18:16:43 +0000
(18:16 +0000)
lustre/ldlm/ldlm_lockd.c
patch
|
blob
|
history
diff --git
a/lustre/ldlm/ldlm_lockd.c
b/lustre/ldlm/ldlm_lockd.c
index
a9020d3
..
c28bbe2
100644
(file)
--- a/
lustre/ldlm/ldlm_lockd.c
+++ b/
lustre/ldlm/ldlm_lockd.c
@@
-643,7
+643,7
@@
int ldlm_handle_enqueue(struct ptlrpc_request *req,
EXIT;
out:
- if (lock->l_resource->lr_lvb_len > 0) {
+ if (lock
!= NULL && lock
->l_resource->lr_lvb_len > 0) {
void *lvb = lustre_msg_buf(req->rq_repmsg, 1,
lock->l_resource->lr_lvb_len);
memcpy(lvb, lock->l_resource->lr_lvb_data,