소스 검색

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

Loading…
취소
저장