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

Commit ffbf0b58 authored by Jiten Patel's avatar Jiten Patel
Browse files

soc: qcom: Fix smcinvoke_obj->fd assignment



Removed conditional assignment of
smcinvoke_obj->fd. This will handle the condition
when fd created in get_uhandle_from_tzhandle is
less than zero.

Change-Id: I824795ba2f14bbf363d86ef21499f71d74f45537
Signed-off-by: default avatarJiten Patel <jitepate@codeaurora.org>
parent c3ccd954
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1072,7 +1072,6 @@ static int marshal_out_invoke_req(const uint8_t *buf, uint32_t buf_size,
					TZHANDLE_GET_SERVER(tz_args->handle),
				&temp_fd, NO_LOCK);

		if (temp_fd >= 0)
		args_buf[i].o.fd = temp_fd;

		if (ret)
@@ -1371,7 +1370,6 @@ static int marshal_in_tzcb_req(const struct smcinvoke_cb_txn *cb_txn,
		ret = get_uhandle_from_tzhandle(tz_args[i].handle, srvr_id,
					&temp_fd, TAKE_LOCK);

		if (temp_fd >= 0)
		tmp_arg.o.fd = temp_fd;

		if (ret) {