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

Commit 98849f68 authored by Yong Ding's avatar Yong Ding
Browse files

soc: qcom: hab: fix some issues in the remote open cancelling case



The version numbers shall be copied into the local variables for
any potential version comparison.

Change-Id: Ib2648805bd7832b4fd7508b10d1382c8055a139f
Signed-off-by: default avatarYong Ding <yongding@codeaurora.org>
parent be1961a6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2020, 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
@@ -240,6 +240,8 @@ int hab_open_receive_cancel(struct physical_channel *pchan,
		request->xdata.vchan_id = data.vchan_id;
		request->xdata.sub_id   = data.sub_id;
		request->xdata.open_id  = data.open_id;
		request->xdata.ver_fe  = data.ver_fe;
		request->xdata.ver_be  = data.ver_be;

		do_gettimeofday(&tv);
		node->age = tv.tv_sec + HAB_OPEN_REQ_EXPIRE_TIME_S +