mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
svga: Prevent potential null pointer deference in vmw_surface.c.
This commit is contained in:
parent
b62a74d3b9
commit
57d389aab5
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ vmw_svga_winsys_surface_reference(struct vmw_svga_winsys_surface **pdst,
|
|||
struct pipe_reference *dst_ref;
|
||||
struct vmw_svga_winsys_surface *dst = *pdst;
|
||||
|
||||
if(*pdst == src || pdst == NULL)
|
||||
if(pdst == NULL || *pdst == src)
|
||||
return;
|
||||
|
||||
src_ref = src ? &src->refcnt : NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue