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

Commit 0837d836 authored by Rama Vaddula's avatar Rama Vaddula Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Fix double put for context in an error case



This change fixes a duplicate put for context in error case.

Change-Id: I3b76b742b164191933b92aa210b9a4664a379443
Signed-off-by: default avatarRama Vaddula <rvaddula@codeaurora.org>
parent 2e5123a1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -236,6 +236,7 @@ int kgsl_add_fence_event(struct kgsl_device *device,
	return 0;

unlock:
	kgsl_context_put(context);
	mutex_unlock(&device->mutex);

out:
@@ -245,7 +246,6 @@ out:
	if (fence)
		sync_fence_put(fence);

	kgsl_context_put(context);
	return ret;
}