public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* Cluster Project branch, master, updated. gfs-kernel_0_1_22-72-g48f2090
@ 2008-03-14 15:39 teigland
  0 siblings, 0 replies; only message in thread
From: teigland @ 2008-03-14 15:39 UTC (permalink / raw)
  To: cluster-cvs, cluster-devel

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=48f20902219251eacf28ec99bc98a17bff192e71

The branch, master has been updated
       via  48f20902219251eacf28ec99bc98a17bff192e71 (commit)
      from  49a5ca7296ad07833e647391380b7786b78a41df (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 48f20902219251eacf28ec99bc98a17bff192e71
Author: David Teigland <teigland@redhat.com>
Date:   Fri Mar 14 10:36:54 2008 -0500

    libdlm: fix lvb copying
    
    When a program does a lock operation that reads an lvb, libdlm
    copies the lvb data from a bogus location instead of from the
    proper offset in the buffer it just read.  The location of the
    lvb data is calculated wrongly due to a missing cast.
    
    Signed-off-by: David Teigland <teigland@redhat.com>

-----------------------------------------------------------------------

Summary of changes:
 dlm/lib/libdlm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlm/lib/libdlm.c b/dlm/lib/libdlm.c
index 7464085..d182095 100644
--- a/dlm/lib/libdlm.c
+++ b/dlm/lib/libdlm.c
@@ -573,7 +573,7 @@ static int do_dlm_dispatch_v6(int fd)
 	/* Copy lvb to user's buffer */
 	if (result->lvb_offset)
 		memcpy(result->user_lksb->sb_lvbptr,
-		       result + result->lvb_offset, DLM_LVB_LEN);
+		       (char *)result + result->lvb_offset, DLM_LVB_LEN);
 
 	result->user_lksb->sb_status = -result->user_lksb->sb_status;
 


hooks/post-receive
--
Cluster Project


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-14 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-14 15:39 Cluster Project branch, master, updated. gfs-kernel_0_1_22-72-g48f2090 teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).