mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
st/xorg: Prevent potential null pointer deference in xorg_xv.c.
This commit is contained in:
parent
46feb7db71
commit
88aab56a26
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue