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

Commit c4ac6998 authored by Sean Tranchetti's avatar Sean Tranchetti
Browse files

soc: qcom: wda: Fix wda cleanup



Fixed an issue that incorrect wda data pointer is passed to the
cleanup function in back-to-back SSR scenarios. The cleanup would
not be done propperty and could lead to invalid memory access later.

CRs-fixed: 2384118
Change-Id: Ie50a419d0c9a5a1a906931e1a7123b29a086a9e4
Acked-by: default avatarWeiyi Chen <weiyic@qti.qualcomm.com>
Signed-off-by: default avatarSean Tranchetti <stranche@codeaurora.org>
parent 6a238dc8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-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
@@ -559,7 +559,7 @@ void qmi_rmnet_qmi_exit(void *qmi_pt, void *port)
		data = qmi->wda_pending;

	if (data) {
		wda_qmi_client_exit(qmi->wda_client);
		wda_qmi_client_exit(data);
		qmi->wda_client = NULL;
		qmi->wda_pending = NULL;
	}