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

Commit 08740902 authored by Chris Lew's avatar Chris Lew Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: qmi_interface: Do not print error for 0 pkt



Add a check for the zero size flow control packet when handling data
from the socket. This packet is expected and should not be printed as
an error.

Change-Id: I74a9edf752cb5f186ef133ae9d8b12cc93ee1b18
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 51669ff0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -477,6 +477,9 @@ static void qmi_handle_message(struct qmi_handle *qmi,
	struct qmi_txn *txn = NULL;
	int ret;

	if (!len)
		return;

	if (len < sizeof(*hdr)) {
		pr_err("ignoring short QMI packet\n");
		return;