i965: Drop bogus pthread_mutex_unlock in map_gtt error path.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Jul 2017 21:01:20 +0000 (14:01 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Jul 2017 19:39:10 +0000 (12:39 -0700)
The locking was supposed to go away in commit 314647c4c206917ec01b7
(i965: Drop global bufmgr lock from brw_bo_map_* functions.), but
this lone unlock remains.

I'm guessing I messed this up when splitting up Chris's patch.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_bufmgr.c

index 98a75dd4a6855e50ddc934cf141898e0befe049d..64e503fb2be73bc12e02ee1fa2d90823ca90a5a1 100644 (file)
@@ -759,7 +759,6 @@ brw_bo_map_gtt(struct brw_context *brw, struct brw_bo *bo, unsigned flags)
       if (ret != 0) {
          DBG("%s:%d: Error preparing buffer map %d (%s): %s .\n",
              __FILE__, __LINE__, bo->gem_handle, bo->name, strerror(errno));
-         pthread_mutex_unlock(&bufmgr->lock);
          return NULL;
       }