git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ocfs2: initialize stack_user lvbptr
[pandora-kernel.git]
/
fs
/
ocfs2
/
stack_user.c
diff --git
a/fs/ocfs2/stack_user.c
b/fs/ocfs2/stack_user.c
index
faec2d8
..
9b76d41
100644
(file)
--- a/
fs/ocfs2/stack_user.c
+++ b/
fs/ocfs2/stack_user.c
@@
-740,6
+740,9
@@
static int user_dlm_lock_status(union ocfs2_dlm_lksb *lksb)
static void *user_dlm_lvb(union ocfs2_dlm_lksb *lksb)
{
+ if (!lksb->lksb_fsdlm.sb_lvbptr)
+ lksb->lksb_fsdlm.sb_lvbptr = (char *)lksb +
+ sizeof(struct dlm_lksb);
return (void *)(lksb->lksb_fsdlm.sb_lvbptr);
}