summaryrefslogtreecommitdiffstats
path: root/juju/raw1394-iso.c
diff options
context:
space:
mode:
authorGravatar Dan Dennedy 2008-04-29 17:27:00 -0700
committerGravatar Dan Dennedy 2008-04-29 17:27:00 -0700
commit832c9c3d896562c369771c4b9df0abd1e2cbe116 (patch)
tree9be5b325ff1601df3945f95ef1bf4e91e8ef0560 /juju/raw1394-iso.c
parentFirst cut at integrating juju (diff)
juju/raw1394-iso.c: bugfix size of mmap'ed isochronous buffer to prevent
segfault in applications.
Diffstat (limited to 'juju/raw1394-iso.c')
-rw-r--r--juju/raw1394-iso.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/juju/raw1394-iso.c b/juju/raw1394-iso.c
index c02f0e3..9fc8779 100644
--- a/juju/raw1394-iso.c
+++ b/juju/raw1394-iso.c
@@ -426,7 +426,7 @@ iso_init(fw_handle_t handle, int type,
}
handle->iso.buffer =
- mmap(NULL, buf_packets * max_packet_size,
+ mmap(NULL, buf_packets * handle->iso.max_packet_size,
prot, MAP_SHARED, handle->iso.fd, 0);
if (handle->iso.buffer == MAP_FAILED) {
@@ -437,7 +437,7 @@ iso_init(fw_handle_t handle, int type,
}
handle->iso.buffer_end = handle->iso.buffer +
- buf_packets * max_packet_size;
+ buf_packets * handle->iso.max_packet_size;
handle->iso.head = handle->iso.buffer;
handle->iso.tail = handle->iso.buffer;
handle->iso.first_payload = handle->iso.buffer;
d Dan Maas' rawiso docsGravatar ddennedy 1-32/+295 2003-04-07new_handle_on_port() error path fix from Jim RadfordGravatar dmaas 1-1/+3 2003-03-26add raw1394_new_handle_on_port() convenience functionGravatar dmaas 2-1/+41 2003-02-22Updates for new rawiso ioctl interface.Gravatar bencollins 3-37/+125 2003-01-15add iso_xmit_sync() and iso_xmit_write(); clean up iso handling a bitGravatar dmaas 5-39/+161 2003-01-15implement tag matching for rawiso receptionGravatar dmaas 3-4/+12 2003-01-06back out previous commit - don't drop the legacy API just yetGravatar dmaas 6-173/+130 2003-01-05emulate legacy ISO reception API on top of new rawiso APIGravatar dmaas 7-131/+174 2002-12-24update iso API for multi-channel reception and new packet buffer layoutGravatar dmaas 4-123/+236 2002-12-20oops, irq_interval needs to be signedGravatar anonymous 1-1/+1 2002-12-20dmaas - renamed exported arm definitions into the raw1394_ namespace; brought...Gravatar anonymous 3-124/+48 2002-12-16rawiso updates:Gravatar dmaas 3-18/+25 2002-11-18fix cplusplus extern C blockGravatar ddennedy 1-4/+4 2002-11-18merged rawiso branchGravatar ddennedy 7-6/+488