From c896d53c9932b612407c4b197d3ba1b03bfef055 Mon Sep 17 00:00:00 2001 From: Jay Fenlason Date: Thu, 12 Apr 2007 14:39:24 -0400 Subject: [PATCH] Use correct payload size for two-operand lock transactions. --- juju/raw1394.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/juju/raw1394.c b/juju/raw1394.c index 56bd104..7f73b3b 100644 --- a/juju/raw1394.c +++ b/juju/raw1394.c @@ -1066,7 +1066,7 @@ setup_lock(int extcode, quadlet_t data, quadlet_t arg, quadlet_t *buffer) case RAW1394_EXTCODE_WRAP_ADD: buffer[0] = arg; buffer[1] = data; - return sizeof buffer; + return 2 * sizeof buffer[0]; default: errno = EINVAL; @@ -1089,7 +1089,7 @@ setup_lock64(int extcode, octlet_t data, octlet_t arg, octlet_t *buffer) case RAW1394_EXTCODE_WRAP_ADD: buffer[0] = arg; buffer[1] = data; - return sizeof buffer; + return 2 * sizeof buffer[0]; default: errno = EINVAL;