public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@nbd.name>
To: linux-wireless@vger.kernel.org
Subject: [PATCH 1/3] mt76: mt7615: 0-terminate firmware log messages
Date: Fri, 26 Mar 2021 21:55:03 +0100	[thread overview]
Message-ID: <20210326205505.74383-1-nbd@nbd.name> (raw)

Avoid including garbage from previous rx data in the printk messages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
index e565fc770a0f..0b8f5dc6b121 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
@@ -423,6 +423,7 @@ mt7615_mcu_rx_log_message(struct mt7615_dev *dev, struct sk_buff *skb)
 		break;
 	}
 
+	skb->data[skb->len] = 0;
 	wiphy_info(mt76_hw(dev)->wiphy, "%s: %s", type, data);
 }
 
-- 
2.30.1


             reply	other threads:[~2021-03-26 20:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26 20:55 Felix Fietkau [this message]
2021-03-26 20:55 ` [PATCH 2/3] mt76: mt7915: 0-terminate firmware log messages Felix Fietkau
2021-03-26 20:55 ` [PATCH 3/3] mt76: mt7615: fix chip reset on MT7622 and MT7663e Felix Fietkau
2021-03-26 21:09 ` [PATCH 1/3] mt76: mt7615: 0-terminate firmware log messages Johannes Berg
2021-03-26 21:53   ` Felix Fietkau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210326205505.74383-1-nbd@nbd.name \
    --to=nbd@nbd.name \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox