Module: Mesa
Branch: mesa_7_7_branch
Commit: 88aab56a26dd33a2d3177a41420f00473d7270af
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=88aab56a26dd33a2d3177a41420f00473d7270af

Author: Vinson Lee <[email protected]>
Date:   Sun Nov 22 01:10:38 2009 -0500

st/xorg: Prevent potential null pointer deference in xorg_xv.c.

---

 src/gallium/state_trackers/xorg/xorg_xv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/xorg/xorg_xv.c 
b/src/gallium/state_trackers/xorg/xorg_xv.c
index a1e74fa..e7f4900 100644
--- a/src/gallium/state_trackers/xorg/xorg_xv.c
+++ b/src/gallium/state_trackers/xorg/xorg_xv.c
@@ -446,7 +446,7 @@ display_video(ScrnInfoPtr pScrn, struct xorg_xv_port_priv 
*pPriv, int id,
    int x, y, w, h;
    struct exa_pixmap_priv *dst = exaGetPixmapDriverPrivate(pPixmap);
 
-   if (!dst->tex) {
+   if (dst && !dst->tex) {
        xorg_exa_set_shared_usage(pPixmap);
        pScrn->pScreen->ModifyPixmapHeader(pPixmap, 0, 0, 0, 0, 0, NULL);
    }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to