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

Commit 500d13b9 authored by Chandan Kumar Jha's avatar Chandan Kumar Jha
Browse files

msm: camera: lrme: Handle release lock when returning from error case



Release mutex before returning error.

Change-Id: I6f13e04db6ee10e88aa38f43cef1be61e725889f
Signed-off-by: default avatarChandan Kumar Jha <cjha@codeaurora.org>
parent cb1a16e3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2019, 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
@@ -955,7 +955,8 @@ int cam_lrme_hw_submit_req(void *hw_priv, void *hw_submit_args,

	if (lrme_core->req_submit != NULL) {
		CAM_ERR(CAM_LRME, "req_submit is not NULL");
		return -EBUSY;
		rc = -EBUSY;
		goto error;
	}

	rc = cam_lrme_hw_util_submit_req(lrme_core, frame_req);