diff options
author | Roger He <Hongbo.He@amd.com> | 2017-12-07 05:51:19 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-14 16:23:02 +0100 |
commit | 5cc636846d23ed817fdda9f00faa56284759d444 (patch) | |
tree | 99642205324444c62ebce93ffcb654e9b08cf24d /drivers/gpu/drm/ttm | |
parent | drm/amd/pp: implement dpm_get_sclk/mclk for RV (diff) | |
download | linux-5cc636846d23ed817fdda9f00faa56284759d444.tar.xz linux-5cc636846d23ed817fdda9f00faa56284759d444.zip |
drm/ttm: init locked again to prevent incorrect unlock
Signed-off-by: Roger He <Hongbo.He@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/ttm')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 97c3da6d5f17..7a9abc2a3a98 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -737,6 +737,7 @@ static int ttm_mem_evict_first(struct ttm_bo_device *bdev, place)) { if (locked) reservation_object_unlock(bo->resv); + locked = false; continue; } break; |