summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Cardona <remi@gentoo.org>2007-12-27 16:36:53 +0000
committerRémi Cardona <remi@gentoo.org>2007-12-27 16:36:53 +0000
commit106f7adf885cb4db694474eb9165cb639e96ae27 (patch)
treeebf865d18aa7bfb2cafaddc3c8bb787116b4d44e /x11-drivers/xf86-video-i810/files/xf86-video-i810-2.2.0-fix_xv_segfault.patch
parentMarking latest version -amd64 because SONAME patch included breaks building s... (diff)
downloadgentoo-2-106f7adf885cb4db694474eb9165cb639e96ae27.tar.gz
gentoo-2-106f7adf885cb4db694474eb9165cb639e96ae27.tar.bz2
gentoo-2-106f7adf885cb4db694474eb9165cb639e96ae27.zip
x11-drivers/xf86-video-i810: Add patch from git HEAD to fix XVideo support
(Portage version: 2.1.4_rc11)
Diffstat (limited to 'x11-drivers/xf86-video-i810/files/xf86-video-i810-2.2.0-fix_xv_segfault.patch')
-rw-r--r--x11-drivers/xf86-video-i810/files/xf86-video-i810-2.2.0-fix_xv_segfault.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-drivers/xf86-video-i810/files/xf86-video-i810-2.2.0-fix_xv_segfault.patch b/x11-drivers/xf86-video-i810/files/xf86-video-i810-2.2.0-fix_xv_segfault.patch
new file mode 100644
index 000000000000..af849a45718c
--- /dev/null
+++ b/x11-drivers/xf86-video-i810/files/xf86-video-i810-2.2.0-fix_xv_segfault.patch
@@ -0,0 +1,28 @@
+From: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue, 18 Dec 2007 18:37:46 +0000 (+0100)
+Subject: Always set pPriv->buf to NULL after freeing the memory it pointed to.
+X-Git-Url: http://gitweb.freedesktop.org/?p=xorg/driver/xf86-video-intel.git;a=commitdiff;h=4757a218d733af12d04674455fc6e1fad48a1cd0
+
+Always set pPriv->buf to NULL after freeing the memory it pointed to.
+
+Fixes https://bugs.freedesktop.org/show_bug.cgi?id=13108 .
+---
+
+--- a/src/i830_video.c
++++ b/src/i830_video.c
+@@ -2574,6 +2574,7 @@ I830VideoBlockHandler(int i, pointer blo
+ */
+ I830Sync(pScrn);
+ i830_free_memory(pScrn, pPriv->buf);
++ pPriv->buf = NULL;
+ pPriv->videoStatus = 0;
+ }
+ }
+@@ -2686,6 +2687,7 @@ I830FreeSurface(XF86SurfacePtr surface)
+ /* Sync before freeing the buffer, because the pages will be unbound. */
+ I830Sync(pScrn);
+ i830_free_memory(surface->pScrn, pPriv->buf);
++ pPriv->buf = NULL;
+ xfree(surface->pitches);
+ xfree(surface->offsets);
+ xfree(surface->devPrivate.ptr);