rpms/libraw1394/F-9 libraw1394-juju-munmap-correct-max_packet_size.patch, NONE, 1.1 libraw1394.spec, 1.40, 1.41
Jarod Wilson (jwilson)
fedora-extras-commits at redhat.com
Mon Apr 28 19:15:30 UTC 2008
Author: jwilson
Update of /cvs/pkgs/rpms/libraw1394/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8132
Modified Files:
libraw1394.spec
Added Files:
libraw1394-juju-munmap-correct-max_packet_size.patch
Log Message:
* Mon Apr 28 2008 Jarod Wilson <jwilson at redhat.com> - 1.3.0-6
- Unmap the correct memory range on iso receive teardown, fixes
segfault on exit from dvgrab (Mladen Kuntner, #444354)
libraw1394-juju-munmap-correct-max_packet_size.patch:
--- NEW FILE libraw1394-juju-munmap-correct-max_packet_size.patch ---
diff -Naurp libraw1394-1.3.0/juju/raw1394-iso.c libraw1394-1.3.0.fix/juju/raw1394-iso.c
--- libraw1394-1.3.0/juju/raw1394-iso.c 2008-04-28 13:57:30.000000000 -0400
+++ libraw1394-1.3.0.fix/juju/raw1394-iso.c 2008-04-28 14:06:21.000000000 -0400
@@ -421,7 +421,7 @@ iso_init(raw1394handle_t handle, int typ
}
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) {
@@ -432,7 +432,7 @@ iso_init(raw1394handle_t handle, int typ
}
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;
Index: libraw1394.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libraw1394/F-9/libraw1394.spec,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- libraw1394.spec 26 Feb 2008 14:32:58 -0000 1.40
+++ libraw1394.spec 28 Apr 2008 19:14:55 -0000 1.41
@@ -1,7 +1,7 @@
Summary: Library providing low-level IEEE-1394 access
Name: libraw1394
Version: 1.3.0
-Release: 5%{?dist}
+Release: 6%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
Source: http://www.linux1394.org/dl/libraw1394-%{version}.tar.gz
@@ -13,6 +13,7 @@
Patch0: libraw1394-juju.patch
Patch1: libraw1394-juju-no-double-free-on-shutdown.patch
Patch2: libraw1394-juju-bitfield-update.patch
+Patch3: libraw1394-juju-munmap-correct-max_packet_size.patch
%description
The libraw1394 library provides direct access to the IEEE-1394 bus through
@@ -29,9 +30,10 @@
%prep
%setup -q
-%patch0 -p1 -b .juju
+%patch0 -p1
%patch1 -p1 -b .free
%patch2 -p1 -b .bitf
+%patch3 -p1 -b .munmap
%build
aclocal
@@ -74,6 +76,10 @@
%changelog
+* Mon Apr 28 2008 Jarod Wilson <jwilson at redhat.com> - 1.3.0-6
+- Unmap the correct memory range on iso receive teardown, fixes
+ segfault on exit from dvgrab (Mladen Kuntner, #444354)
+
* Tue Feb 26 2008 Jarod Wilson <jwilson at redhat.com> - 1.3.0-5
- Update license and kill an errant tab (#226039)
More information about the fedora-extras-commits
mailing list