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

Commit e7de12a5 authored by Sreelakshmi Gownipalli's avatar Sreelakshmi Gownipalli Committed by Gerrit - the friendly Code Review server
Browse files

diag: Handle connection reset error



Don't print error message when diag receives connection reset error
while writing data to socket

Change-Id: I07b38f6ee18ef038591648ff98535990b15ae5c7
Signed-off-by: default avatarSreelakshmi Gownipalli <sgownipa@codeaurora.org>
parent 541439b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -822,7 +822,7 @@ static int diag_socket_write(void *ctxt, unsigned char *buf, int len)
		 * -EAGAIN means that the number of packets in flight is at
		 * max capactity and the peripheral hasn't read the data.
		 */
		if (err != -EAGAIN) {
		if (err != -EAGAIN && err != -ECONNRESET) {
			pr_err_ratelimited("diag: In %s, error sending data, err: %d, ch: %s\n",
					   __func__, err, info->name);
		}