VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Mikko Perttunen <mperttunen@nvidia.com> 2021-03-29 16:38:35 +0300 committer: Thierry Reding <treding@nvidia.com> 2021-03-31 17:42:14 +0200 commit: 5a8d95d20c406c673258edd4c2bd308c22304657 parent: f5ba33fb9690566c382624637125827b5512e766
Commit Summary:
gpu: host1x: Assign intr waiter inside lock
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/host1x/intr.c b/drivers/gpu/host1x/intr.c
index 69b0e8e41466..6d1f3c0fdbe7 100644
--- a/drivers/gpu/host1x/intr.c
+++ b/drivers/gpu/host1x/intr.c
@@ -235,10 +235,11 @@ int host1x_intr_add_action(struct host1x *host, struct host1x_syncpt *syncpt,
 			host1x_hw_intr_enable_syncpt_intr(host, syncpt->id);
 	}
 
-	spin_unlock(&syncpt->intr.lock);
-
 	if (ref)
 		*ref = waiter;
+
+	spin_unlock(&syncpt->intr.lock);
+
 	return 0;
 }