public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [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
@ 2007-12-27 16:36 Remi Cardona (remi)
  0 siblings, 0 replies; only message in thread
From: Remi Cardona (remi) @ 2007-12-27 16:36 UTC (permalink / raw
  To: gentoo-commits

remi        07/12/27 16:36:53

  Added:                xf86-video-i810-2.2.0-fix_xv_segfault.patch
                        digest-xf86-video-i810-2.2.0-r1
  Log:
  x11-drivers/xf86-video-i810: Add patch from git HEAD to fix XVideo support
  (Portage version: 2.1.4_rc11)

Revision  Changes    Path
1.1                  x11-drivers/xf86-video-i810/files/xf86-video-i810-2.2.0-fix_xv_segfault.patch

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
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

Index: xf86-video-i810-2.2.0-fix_xv_segfault.patch
===================================================================
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);



1.1                  x11-drivers/xf86-video-i810/files/digest-xf86-video-i810-2.2.0-r1

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
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

Index: digest-xf86-video-i810-2.2.0-r1
===================================================================
MD5 e90d44adc819e8c5c76a1abde525a963 xf86-video-intel-2.2.0.tar.bz2 596840
RMD160 728dc77903649af7ad3d26d20f0000801c7e5c85 xf86-video-intel-2.2.0.tar.bz2 596840
SHA256 73474a5c9224fdb65b420aef9e116cc573a5e050b078b54cfe4753f94fcc510b xf86-video-intel-2.2.0.tar.bz2 596840



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-27 16:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-27 16:36 [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 Remi Cardona (remi)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox