rpms/xorg-x11-drv-fpit/F-10 fpit-1.3.0-unload.patch, NONE, 1.1 xorg-x11-drv-fpit.spec, 1.16, 1.17
Peter Hutterer
whot at fedoraproject.org
Thu Aug 27 22:47:18 UTC 2009
- Previous message (by thread): rpms/nss-util/devel nss-util.spec,1.7,1.8
- Next message (by thread): rpms/kernel/F-11 linux-2.6-x86-load-percpu-segment-no-stackprotector.patch, NONE, 1.1 linux-2.6-xen-rearrange-to-fix-stackprotector.patch, NONE, 1.1 config-x86-generic, 1.79, 1.80 kernel.spec, 1.1720, 1.1721
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: whot
Update of /cvs/pkgs/rpms/xorg-x11-drv-fpit/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv27093
Modified Files:
xorg-x11-drv-fpit.spec
Added Files:
fpit-1.3.0-unload.patch
Log Message:
* Fri Aug 28 2009 Peter Hutterer <peter.hutterer at redhat.com> 1.2.0-2
- fpit-1.3.0-unload.patch: avoide some double-frees (#473366)
fpit-1.3.0-unload.patch:
xf86Fpit.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
--- NEW FILE fpit-1.3.0-unload.patch ---
>From 7dacfde39a027bb868493ba075e2f1d787c9b191 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer at who-t.net>
Date: Fri, 28 Aug 2009 08:16:36 +1000
Subject: [PATCH] Fix module unloading.
After calling xfree(priv), local->private must be set NULL.
Otherwise the server tries to free it again during xf86DeleteInput.
local->name must not be freed, it is set to XI_TOUCHSCREEN during PreInit.
local must not be freed, we pass it into xf86DeleteInput.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/xf86Fpit.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/xf86Fpit.c b/src/xf86Fpit.c
index f40c6a9..ce7540b 100644
--- a/src/xf86Fpit.c
+++ b/src/xf86Fpit.c
@@ -589,8 +589,7 @@ static void xf86FpitUninit(InputDriverPtr drv, LocalDevicePtr local, int flags)
xf86FpitControl(local->dev, DEVICE_OFF);
xfree(priv->fpitDev);
xfree(priv);
- xfree(local->name);
- xfree(local);
+ local->private = NULL;
xf86DeleteInput(local, 0);
}
--
1.6.3.rc1.2.g0164.dirty
Index: xorg-x11-drv-fpit.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xorg-x11-drv-fpit/F-10/xorg-x11-drv-fpit.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -r1.16 -r1.17
--- xorg-x11-drv-fpit.spec 20 Mar 2008 19:45:16 -0000 1.16
+++ xorg-x11-drv-fpit.spec 27 Aug 2009 22:47:16 -0000 1.17
@@ -5,7 +5,7 @@
Summary: Xorg X11 fpit input driver
Name: xorg-x11-drv-fpit
Version: 1.2.0
-Release: 1%{?dist}
+Release: 2%{?dist}
URL: http://www.x.org
License: MIT
Group: User Interface/X Hardware Support
@@ -13,6 +13,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version
Source0: ftp://ftp.x.org/pub/individual/driver/%{tarball}-%{version}.tar.bz2
+# Taken from upstream.
+Patch1: fpit-1.3.0-unload.patch
+
ExcludeArch: s390 s390x
BuildRequires: xorg-x11-server-sdk >= 1.3.0.0-6
@@ -24,6 +27,7 @@ X.Org X11 fpit input driver.
%prep
%setup -q -n %{tarball}-%{version}
+%patch1 -p1 -b .unload
%build
%configure --disable-static
@@ -47,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man4/fpit.4*
%changelog
+* Fri Aug 28 2009 Peter Hutterer <peter.hutterer at redhat.com> 1.2.0-2
+- fpit-1.3.0-unload.patch: avoide some double-frees (#473366)
+
* Thu Mar 20 2008 Adam Jackson <ajax at redhat.com> 1.2.0-1
- fpit 1.2.0
- Previous message (by thread): rpms/nss-util/devel nss-util.spec,1.7,1.8
- Next message (by thread): rpms/kernel/F-11 linux-2.6-x86-load-percpu-segment-no-stackprotector.patch, NONE, 1.1 linux-2.6-xen-rearrange-to-fix-stackprotector.patch, NONE, 1.1 config-x86-generic, 1.79, 1.80 kernel.spec, 1.1720, 1.1721
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list