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

Commit 4238c136 authored by Mohit Aggarwal's avatar Mohit Aggarwal Committed by Bernhard Thoben
Browse files

diag: Fix for possible dci stale entries



This patch provides the protection to dci client
entries from corruption.

CRs-Fixed: 984942 992683
Bug: 62378232
Change-Id: Ifcd9f14dc03d9e42a31b3e126839489881e98303
Signed-off-by: default avatarManoj Prabhu B <bmanoj@codeaurora.org>
Signed-off-by: default avatarMohit Aggarwal <maggarwa@codeaurora.org>
(cherry picked from commit 1ede4694d5b28e1992c61613d67a6e3a18f96222)
parent f71c1b1a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3010,8 +3010,6 @@ int diag_dci_deinit_client(struct diag_dci_client_tbl *entry)
	if (!entry)
		return DIAG_DCI_NOT_SUPPORTED;

	mutex_lock(&driver->dci_mutex);

	token = entry->client_info.token;
	/*
	 * Remove the entry from the list before freeing the buffers