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:
e5fa40c
)
Branch b_release_1_8_0
author
johann
<johann>
Tue, 3 Mar 2009 15:08:48 +0000
(15:08 +0000)
committer
johann
<johann>
Tue, 3 Mar 2009 15:08:48 +0000
(15:08 +0000)
b=18374
i=adilger
i=shadow
use memmove instead of memcpy when shrinking the reply since the two memory
areas can overlap.
lustre/ptlrpc/pack_generic.c
patch
|
blob
|
history
diff --git
a/lustre/ptlrpc/pack_generic.c
b/lustre/ptlrpc/pack_generic.c
index
b6f4862
..
c841a5e
100644
(file)
--- a/
lustre/ptlrpc/pack_generic.c
+++ b/
lustre/ptlrpc/pack_generic.c
@@
-670,7
+670,7
@@
void lustre_shrink_reply_v2(struct ptlrpc_request *req, int segment,
newpos = lustre_msg_buf_v2(msg, segment + 1, 0);
LASSERT(newpos <= tail);
if (newpos != tail)
- mem
cpy
(newpos, tail, tail_len);
+ mem
move
(newpos, tail, tail_len);
}
if (newlen == 0 && msg->lm_bufcount > segment + 1) {