From 283aeb2a37ba7fd05957ae15bd83276cadf31f0a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 15 May 2007 18:23:58 +0000 Subject: r22913: try to work arround the unaligned memory access bug on Tru64 metze (This used to be commit 3a7a30ab1cf724ad2420ae2a1011479fffd826fe) --- source4/ntvfs/posix/pvfs_wait.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source4/ntvfs/posix/pvfs_wait.c') diff --git a/source4/ntvfs/posix/pvfs_wait.c b/source4/ntvfs/posix/pvfs_wait.c index 3d0bb465e3..e21b5766cb 100644 --- a/source4/ntvfs/posix/pvfs_wait.c +++ b/source4/ntvfs/posix/pvfs_wait.c @@ -61,14 +61,20 @@ static void pvfs_wait_dispatch(struct messaging_context *msg, void *private, uin { 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; -- cgit