toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / x11r7 / xdriver_xf86-input-tslib / 0001-fix-segfault.patch
blobadef18b3027efc21a385d823b599d2e037017a65
1 Fetch from: https://launchpad.net/ubuntu/+archive/primary/+files/xf86-input-tslib_0.0.6-7build3.debian.tar.gz
3 Signed-off-by: Jesper Baekdahl <jbb@gamblify.com>
4 ---
5 --- xf86-input-tslib-0.0.6/src/tslib.c 2009-10-19 18:07:18.000000000 +0300
6 +++ xf86-input-tslib-0.0.6.new/src/tslib.c 2010-02-12 16:15:05.000000000 +0200
7 @@ -103,8 +103,6 @@
8 static void
9 PointerControlProc(DeviceIntPtr dev, PtrCtrl * ctrl)
11 - ErrorF("%s\n", __FUNCTION__);
12 - return;
15 static Bool
16 @@ -406,7 +404,9 @@
17 xf86MotionHistoryAllocate(pInfo);
18 #endif
20 - break;
21 + if (!InitPtrFeedbackClassDeviceStruct(device, PointerControlProc))
22 + return !Success;
23 + break;
25 case DEVICE_ON:
26 AddEnabledDevice(pInfo->fd);
27 @@ -435,6 +435,7 @@
28 xf86TslibControlProc(pInfo->dev, DEVICE_OFF);
29 ts_close(priv->ts);
30 xfree(pInfo->private);
31 + pInfo->private = NULL;
32 xf86DeleteInput(pInfo, 0);