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

Commit 8c87c8fc 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: Fix double put for context in an error case"

parents 061bcf04 0837d836
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;
}