From 25084e43a9538241c6015125fab70a1c3090aec5 Mon Sep 17 00:00:00 2001 From: Mohit Aggarwal Date: Mon, 3 Apr 2017 13:57:16 +0530 Subject: [PATCH] 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: Mohit Aggarwal --- drivers/char/diag/diagfwd_peripheral.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/char/diag/diagfwd_peripheral.c b/drivers/char/diag/diagfwd_peripheral.c index 55d36abe4679..7a4e6c82579c 100644 --- a/drivers/char/diag/diagfwd_peripheral.c +++ b/drivers/char/diag/diagfwd_peripheral.c @@ -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);