Skip to content

Commit f456d34

Browse files
Jordan Crouserobclark
authored andcommitted
drm/msm: Fix wrong pointer check in a5xx_destroy
Instead of checking for a5xx_gpu->gpmu_iova during destroy we accidently check a5xx_gpu->gpmu_bo. Signed-off-by: Jordan Crouse <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent 280489d commit f456d34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/msm/adreno/a5xx_gpu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2016 The Linux Foundation. All rights reserved.
1+
/* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
22
*
33
* This program is free software; you can redistribute it and/or modify
44
* it under the terms of the GNU General Public License version 2 and
@@ -534,7 +534,7 @@ static void a5xx_destroy(struct msm_gpu *gpu)
534534
}
535535

536536
if (a5xx_gpu->gpmu_bo) {
537-
if (a5xx_gpu->gpmu_bo)
537+
if (a5xx_gpu->gpmu_iova)
538538
msm_gem_put_iova(a5xx_gpu->gpmu_bo, gpu->id);
539539
drm_gem_object_unreference_unlocked(a5xx_gpu->gpmu_bo);
540540
}

0 commit comments

Comments
 (0)