diff options
author | Vinson Lee <[email protected]> | 2009-11-22 01:10:38 -0500 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-11-22 01:10:38 -0500 |
commit | 88aab56a26dd33a2d3177a41420f00473d7270af (patch) | |
tree | 271ef71afef280b6df2a7a537bbbf557809a9c98 /src | |
parent | 46feb7db71b05ec67a7c78f6bc608adec0734dec (diff) |
st/xorg: Prevent potential null pointer deference in xorg_xv.c.
Diffstat (limited to 'src')
-rw-r--r-- | 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 a1e74fad598..e7f4900528d 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); } |