Gentoo Archives: gentoo-commits

From: "Remi Cardona (remi)" <remi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-drivers/xf86-video-i810/files: xf86-video-i810-2.2.0-fix_xv_segfault.patch digest-xf86-video-i810-2.2.0-r1
Date: Thu, 27 Dec 2007 16:37:00
Message-Id: E1J7vj3-0008CE-L7@stork.gentoo.org
1 remi 07/12/27 16:36:53
2
3 Added: xf86-video-i810-2.2.0-fix_xv_segfault.patch
4 digest-xf86-video-i810-2.2.0-r1
5 Log:
6 x11-drivers/xf86-video-i810: Add patch from git HEAD to fix XVideo support
7 (Portage version: 2.1.4_rc11)
8
9 Revision Changes Path
10 1.1 x11-drivers/xf86-video-i810/files/xf86-video-i810-2.2.0-fix_xv_segfault.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-i810/files/xf86-video-i810-2.2.0-fix_xv_segfault.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-i810/files/xf86-video-i810-2.2.0-fix_xv_segfault.patch?rev=1.1&content-type=text/plain
14
15 Index: xf86-video-i810-2.2.0-fix_xv_segfault.patch
16 ===================================================================
17 From: Michel Dänzer <michel@××××××××××××××××.com>
18 Date: Tue, 18 Dec 2007 18:37:46 +0000 (+0100)
19 Subject: Always set pPriv->buf to NULL after freeing the memory it pointed to.
20 X-Git-Url: http://gitweb.freedesktop.org/?p=xorg/driver/xf86-video-intel.git;a=commitdiff;h=4757a218d733af12d04674455fc6e1fad48a1cd0
21
22 Always set pPriv->buf to NULL after freeing the memory it pointed to.
23
24 Fixes https://bugs.freedesktop.org/show_bug.cgi?id=13108 .
25 ---
26
27 --- a/src/i830_video.c
28 +++ b/src/i830_video.c
29 @@ -2574,6 +2574,7 @@ I830VideoBlockHandler(int i, pointer blo
30 */
31 I830Sync(pScrn);
32 i830_free_memory(pScrn, pPriv->buf);
33 + pPriv->buf = NULL;
34 pPriv->videoStatus = 0;
35 }
36 }
37 @@ -2686,6 +2687,7 @@ I830FreeSurface(XF86SurfacePtr surface)
38 /* Sync before freeing the buffer, because the pages will be unbound. */
39 I830Sync(pScrn);
40 i830_free_memory(surface->pScrn, pPriv->buf);
41 + pPriv->buf = NULL;
42 xfree(surface->pitches);
43 xfree(surface->offsets);
44 xfree(surface->devPrivate.ptr);
45
46
47
48 1.1 x11-drivers/xf86-video-i810/files/digest-xf86-video-i810-2.2.0-r1
49
50 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-i810/files/digest-xf86-video-i810-2.2.0-r1?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-i810/files/digest-xf86-video-i810-2.2.0-r1?rev=1.1&content-type=text/plain
52
53 Index: digest-xf86-video-i810-2.2.0-r1
54 ===================================================================
55 MD5 e90d44adc819e8c5c76a1abde525a963 xf86-video-intel-2.2.0.tar.bz2 596840
56 RMD160 728dc77903649af7ad3d26d20f0000801c7e5c85 xf86-video-intel-2.2.0.tar.bz2 596840
57 SHA256 73474a5c9224fdb65b420aef9e116cc573a5e050b078b54cfe4753f94fcc510b xf86-video-intel-2.2.0.tar.bz2 596840
58
59
60
61 --
62 gentoo-commits@g.o mailing list