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:
48ed74e
)
b=20211
author
jxiong
<jxiong>
Thu, 30 Jul 2009 03:06:21 +0000
(
03:06
+0000)
committer
jxiong
<jxiong>
Thu, 30 Jul 2009 03:06:21 +0000
(
03:06
+0000)
r=shadow,rread
Fixed a problem of accessing free req.
lustre/lov/lov_request.c
patch
|
blob
|
history
diff --git
a/lustre/lov/lov_request.c
b/lustre/lov/lov_request.c
index
f0eee27
..
2f7b8a4
100644
(file)
--- a/
lustre/lov/lov_request.c
+++ b/
lustre/lov/lov_request.c
@@
-686,9
+686,8
@@
int lov_update_create_set(struct lov_request_set *set,
rc = -EIO;
}
}
- lov_update_set(set, req, rc);
if (rc)
-
RETURN(
rc);
+
GOTO(out,
rc);
loi->loi_id = req->rq_oi.oi_oa->o_id;
loi->loi_gr = req->rq_oi.oi_oa->o_gr;
@@
-702,7
+701,9
@@
int lov_update_create_set(struct lov_request_set *set,
if (req->rq_oi.oi_oa->o_valid & OBD_MD_FLCOOKIE)
set->set_cookie_sent++;
- RETURN(0);
+out:
+ lov_update_set(set, req, rc);
+ RETURN(rc);
}
int cb_create_update(void *cookie, int rc)