浏览代码

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

tags/mesa_7_7_rc1
Vinson Lee 16 年前
父节点
当前提交
88aab56a26
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/gallium/state_trackers/xorg/xorg_xv.c

+ 1
- 1
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);
}

正在加载...
取消
保存