Use correct payload size for two-operand lock transactions.

This commit is contained in:
Jay Fenlason 2007-04-12 14:39:24 -04:00 committed by Kristian Høgsberg
parent 7096501f0d
commit c896d53c99
1 changed files with 2 additions and 2 deletions

View File

@ -1066,7 +1066,7 @@ setup_lock(int extcode, quadlet_t data, quadlet_t arg, quadlet_t *buffer)
case RAW1394_EXTCODE_WRAP_ADD: case RAW1394_EXTCODE_WRAP_ADD:
buffer[0] = arg; buffer[0] = arg;
buffer[1] = data; buffer[1] = data;
return sizeof buffer; return 2 * sizeof buffer[0];
default: default:
errno = EINVAL; errno = EINVAL;
@ -1089,7 +1089,7 @@ setup_lock64(int extcode, octlet_t data, octlet_t arg, octlet_t *buffer)
case RAW1394_EXTCODE_WRAP_ADD: case RAW1394_EXTCODE_WRAP_ADD:
buffer[0] = arg; buffer[0] = arg;
buffer[1] = data; buffer[1] = data;
return sizeof buffer; return 2 * sizeof buffer[0];
default: default:
errno = EINVAL; errno = EINVAL;