Commit:     599e0f584de8ff16b1428e2e16118757619f1d1b
Parent:     e80af3a8dbbbf431b2070cc760699f01c5a6ac69
Author:     David Teigland <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 21 13:39:57 2008 -0600
Committer:  David Teigland <[EMAIL PROTECTED]>
CommitDate: Thu Feb 21 15:19:54 2008 -0600

    dlm: fix rcom_names message to self
    The recent patch to validate data lengths in rcom_names messages
    failed to account for fake messages a node directs to itself before
    ever sending it.  In this case we need to fill in the message length
    in the header for the validation code to use.
    Signed-off-by: David Teigland <[EMAIL PROTECTED]>
 fs/dlm/rcom.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/dlm/rcom.c b/fs/dlm/rcom.c
index 035e6f9..67522c2 100644
--- a/fs/dlm/rcom.c
+++ b/fs/dlm/rcom.c
@@ -215,6 +215,8 @@ int dlm_rcom_names(struct dlm_ls *ls, int nodeid, char 
*last_name, int last_len)
        ls->ls_recover_nodeid = nodeid;
        if (nodeid == dlm_our_nodeid()) {
+               ls->ls_recover_buf->rc_header.h_length =
+                       dlm_config.ci_buffer_size;
                dlm_copy_master_names(ls, last_name, last_len,
                                      max_size, nodeid);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to