Skip to contentSkip to conversation

cluster/dlm/lib libdlm.c

Cluster-devel [email protected] 1 participant 1 message Jan 17, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL51
Changes by: cfeist at sourceware.org 2008-01-17 16:54:22

Modified files:
dlm/lib : libdlm.c

Log message:
Pulled from RHEL5 branch

Zero namelen when doing an unlock. On 32/64 bit systems it can make a horrible mess otherwise.
bz#409221 has the gory details

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/lib/libdlm.c.diff?cvsroot=cluster&only_with_tag=RHEL51&r1=1.32.2.2&r2=1.32.2.2.2.1

dlm/lib/libdlm.c +1 -0
@@ -1034,6 +1034,7 @@
 
 	set_version_v6(&req);
 	req.cmd = DLM_USER_UNLOCK;
+	req.i.lock.namelen = 0;
 	req.i.lock.lkid = lkid;
 	req.i.lock.flags = flags;
 	req.i.lock.lksb  = lksb;