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

Commit 98302396 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Update the read buffers status properly"

parents 1e442642 756f468d
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -730,10 +730,12 @@ static void __diag_fwd_open(struct diagfwd_info *fwd_info)
	if (!fwd_info->inited)
		return;

	if (driver->logging_mode != DIAG_USB_MODE) {
		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);