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

Commit 25084e43 authored by Mohit Aggarwal's avatar Mohit Aggarwal
Browse files

diag: Do not mark buffers free during channel opening



Currently, when launching mdlog session, buffers are being
marked free due to which file list command response is
getting corrupted leading to file list command timeout
error. This patch fixes the issue by keeping the buffers
busy which avoids queuing of next read.

CRs-Fixed: 2023646
Change-Id: I4db71c144875112a5ce24729b6b781488575a271
Signed-off-by: default avatarMohit Aggarwal <maggarwa@codeaurora.org>
parent 44f5f07c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -990,11 +990,6 @@ static void __diag_fwd_open(struct diagfwd_info *fwd_info)
	if (!fwd_info->inited)
		return;

	if (fwd_info->buf_1)
		atomic_set(&fwd_info->buf_1->in_busy, 0);
	if (fwd_info->buf_2)
		atomic_set(&fwd_info->buf_2->in_busy, 0);

	if (fwd_info->p_ops && fwd_info->p_ops->open)
		fwd_info->p_ops->open(fwd_info->ctxt);