OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../xf86-input-fpit/0002-Fix-module-unloading.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From d8e6b7594dcf9bb622693be471939a0918e1f320 Mon Sep 17 00:00:00 2001
  17. From: Peter Hutterer <peter.hutterer@who-t.net>
  18. Date: Fri, 28 Aug 2009 08:16:36 +1000
  19. Subject: [PATCH 2/3] Fix module unloading.
  20. After calling xfree(priv), local->private must be set NULL.
  21. Otherwise the server tries to free it again during xf86DeleteInput.
  22. local->name must not be freed, it is set to XI_TOUCHSCREEN during PreInit.
  23. local must not be freed, we pass it into xf86DeleteInput.
  24. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  25. ---
  26. src/xf86Fpit.c | 3 +--
  27. 1 files changed, 1 insertions(+), 2 deletions(-)
  28. diff --git a/src/xf86Fpit.c b/src/xf86Fpit.c
  29. index f40c6a9..ce7540b 100644
  30. --- a/src/xf86Fpit.c
  31. +++ b/src/xf86Fpit.c
  32. @@ -589,8 +589,7 @@ static void xf86FpitUninit(InputDriverPtr drv, LocalDevicePtr local, int flags)
  33. xf86FpitControl(local->dev, DEVICE_OFF);
  34. xfree(priv->fpitDev);
  35. xfree(priv);
  36. - xfree(local->name);
  37. - xfree(local);
  38. + local->private = NULL;
  39. xf86DeleteInput(local, 0);
  40. }
  41. --
  42. 1.6.5.3