From 914f11e75b8ebe8a0faab76ce25fe185ab580eee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 25 Jul 2017 18:28:06 +0200 Subject: [PATCH] st/mesa: fix unconditional return in st_framebuffer_iface_remove Noticed by James Legg @ Feral. Cc: 17.2 Reviewed-by: Samuel Pitoiset --- src/mesa/state_tracker/st_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 834bcc9f8c2..6447403fc66 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -560,7 +560,7 @@ st_framebuffer_iface_remove(struct st_manager *smapi, (struct st_manager_private *)smapi->st_manager_private; struct hash_entry *entry; - if (!smPriv || !smPriv->stfbi_ht); + if (!smPriv || !smPriv->stfbi_ht) return; mtx_lock(&smPriv->st_mutex); -- 2.30.2