diff options
| author | 2008-04-29 17:27:00 -0700 | |
|---|---|---|
| committer | 2008-04-29 17:27:00 -0700 | |
| commit | 832c9c3d896562c369771c4b9df0abd1e2cbe116 (patch) | |
| tree | 9be5b325ff1601df3945f95ef1bf4e91e8ef0560 /juju/raw1394-iso.c | |
| parent | First cut at integrating juju (diff) | |
juju/raw1394-iso.c: bugfix size of mmap'ed isochronous buffer to prevent
segfault in applications.
Diffstat (limited to '')
| -rw-r--r-- | juju/raw1394-iso.c | 4 |
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; |
