Module: Mesa
Branch: master
Commit: 224fd17e1ef5173f4406bdbcfd9434c3e0c38b22
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=224fd17e1ef5173f4406bdbcfd9434c3e0c38b22

Author: Grazvydas Ignotas <[email protected]>
Date:   Mon Jan 22 15:41:00 2018 -0700

winsys/svga: check correct member after create

.mob_fenced was already checked, probably a copy-paste bug.
Found by Coccinelle.

Signed-off-by: Grazvydas Ignotas <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Brian Paul <[email protected]>

---

 src/gallium/winsys/svga/drm/vmw_screen_pools.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/winsys/svga/drm/vmw_screen_pools.c 
b/src/gallium/winsys/svga/drm/vmw_screen_pools.c
index 48c95e5069..29cdc69e28 100644
--- a/src/gallium/winsys/svga/drm/vmw_screen_pools.c
+++ b/src/gallium/winsys/svga/drm/vmw_screen_pools.c
@@ -150,7 +150,7 @@ vmw_mob_pools_init(struct vmw_winsys_screen *vws)
    vws->pools.mob_shader_slab_fenced =
       simple_fenced_bufmgr_create(vws->pools.mob_shader_slab,
                                  vws->fence_ops);
-   if(!vws->pools.mob_fenced)
+   if(!vws->pools.mob_shader_slab_fenced)
       goto out_no_mob_shader_slab_fenced;
 
    return TRUE;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to