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

Commit d55a85bc authored by Mohammed Javid's avatar Mohammed Javid
Browse files

ipa: Fix to MHI channel state update



Make a change to use the right channel state size when
updating the state info to avoid overwriting other fields
in the MHI context.

Change-Id: Ic0483dedaacfd3d74452f561b4e25953a1e24fb0
Acked-by: default avatarChaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent 92d44bbb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2015, 2017-2018 The Linux Foundation. All rights reserved.
/* Copyright (c) 2015, 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
@@ -1617,7 +1617,7 @@ int ipa_mhi_connect_pipe(struct ipa_mhi_connect_params *in, u32 *clnt_hdl)
		res = ipa_mhi_read_write_host(IPA_MHI_DMA_TO_HOST,
			&channel->state, channel->channel_context_addr +
				offsetof(struct ipa_mhi_ch_ctx, chstate),
				sizeof(channel->state));
				sizeof(((struct ipa_mhi_ch_ctx *)0)->chstate));
		if (res) {
			IPA_MHI_ERR("ipa_mhi_read_write_host failed\n");
			return res;