Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4449b754 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Protect fault detect start with active count"

parents 91a5ecce 99be6e4d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2199,9 +2199,12 @@ static ssize_t _ft_fast_hang_detect_store(struct device *dev,

	if (tmp != adreno_dev->fast_hang_detect) {
		if (adreno_dev->fast_hang_detect) {
			if (adreno_dev->gpudev->fault_detect_start)
			if (adreno_dev->gpudev->fault_detect_start &&
				!kgsl_active_count_get(&adreno_dev->dev)) {
				adreno_dev->gpudev->fault_detect_start(
					adreno_dev);
				kgsl_active_count_put(&adreno_dev->dev);
			}
		} else {
			if (adreno_dev->gpudev->fault_detect_stop)
				adreno_dev->gpudev->fault_detect_stop(