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

Commit 97c73aa5 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: Changing to kref_get_unless_zero for process refcount"

parents a5fef028 71fa1d03
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -830,7 +830,8 @@ kgsl_find_process_private(struct kgsl_device_private *cur_dev_priv)
	mutex_lock(&kgsl_driver.process_mutex);
	list_for_each_entry(private, &kgsl_driver.process_list, list) {
		if (private->pid == task_tgid_nr(current)) {
			kref_get(&private->refcount);
			if (!kref_get_unless_zero(&private->refcount))
				private = NULL;
			goto done;
		}
	}