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:
4479365
)
a small fix to the reference beyond the buffer
author
tianying
<tianying>
Sun, 9 May 2004 09:12:03 +0000
(09:12 +0000)
committer
tianying
<tianying>
Sun, 9 May 2004 09:12:03 +0000
(09:12 +0000)
lustre/lvfs/llog.c
patch
|
blob
|
history
diff --git
a/lustre/lvfs/llog.c
b/lustre/lvfs/llog.c
index
12da23b
..
0b647a7
100644
(file)
--- a/
lustre/lvfs/llog.c
+++ b/
lustre/lvfs/llog.c
@@
-345,6
+345,10
@@
int llog_reverse_process(struct llog_handle *loghandle, llog_cb_t cb,
--index;
if (index < first_index)
GOTO(out, rc = 0);
+
+ if ((void *)rec == buf)
+ break;
+
tail = (void *)rec - sizeof(struct llog_rec_tail);
rec = ((void *)rec - le32_to_cpu(tail->lrt_len));
}