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

Commit bb59ad9a authored by Ravi Aravamudhan's avatar Ravi Aravamudhan Committed by Matt Wagantall
Browse files

diag: Pass correct value when there is a mux write failure



The buffer context passed to the peripheral transport layers if
there are any errors while writing to MUX is incorrect. This patch
fixes this issue.

Change-Id: I6c96b44f3ab7ac0b4ba254a1e04e283360b63ffb
Signed-off-by: default avatarRavi Aravamudhan <aravamud@codeaurora.org>
parent 3a9e0b5a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include "diagfwd_cntl.h"
#include "diag_masks.h"
#include "diag_dci.h"
#include "diagfwd.h"
#include "diagfwd_smd.h"
#include "diagfwd_socket.h"
#include "diag_mux.h"
@@ -316,7 +317,7 @@ end:
	mutex_unlock(&driver->hdlc_disable_mutex);
	if (temp_buf) {
		diagfwd_write_done(fwd_info->peripheral, fwd_info->type,
				   temp_buf->ctxt);
				   GET_BUF_NUM(temp_buf->ctxt));
	}
	diagfwd_queue_read(fwd_info);
	return;