svn commit: samba r22913 - in branches/SAMBA_4_0/source/ntvfs/posix: .

metze at samba.org metze at samba.org
Tue May 15 18:23:59 GMT 2007


Author: metze
Date: 2007-05-15 18:23:58 +0000 (Tue, 15 May 2007)
New Revision: 22913

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22913

Log:
try to work arround the unaligned memory access bug on Tru64

metze
Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c	2007-05-15 16:56:21 UTC (rev 22912)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c	2007-05-15 18:23:58 UTC (rev 22913)
@@ -61,14 +61,20 @@
 {
 	struct pvfs_wait *pwait = private;
 	struct ntvfs_request *req;
+	void *p = NULL;
 
 	/* we need to check that this one is for us. See
 	   messaging_send_ptr() for the other side of this.
 	 */
-	if (data->length != sizeof(void *) ||
-	    *(void **)data->data != pwait->private) {
+	if (data->length == sizeof(void *)) {
+		void **pp;
+		pp = (void **)data->data;
+		p = *pp;
+	}
+	if (p == NULL || p != pwait->private) {
 		return;
 	}
+
 	pwait->reason = PVFS_WAIT_EVENT;
 	req = pwait->req;
 



More information about the samba-cvs mailing list