From 221c0934b7f587a2dc436c7680cf477e0c0917ec Mon Sep 17 00:00:00 2001 From: Yong Ding Date: Wed, 10 Mar 2021 18:19:53 +0800 Subject: [PATCH] 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: I08ac6359df0890a2605dbb6279b73abe09060ec8 Signed-off-by: Yong Ding --- drivers/soc/qcom/hab/hab_open.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/hab/hab_open.c b/drivers/soc/qcom/hab/hab_open.c index 4033e372e2fe..2fe46e3b674e 100644 --- a/drivers/soc/qcom/hab/hab_open.c +++ b/drivers/soc/qcom/hab/hab_open.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */ #include "hab.h" @@ -233,6 +233,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; ktime_get_ts64(&ts); node->age = ts.tv_sec + HAB_OPEN_REQ_EXPIRE_TIME_S +