Skip to content

Commit

Permalink
mt76: mt7915: 0-terminate firmware log messages
Browse files Browse the repository at this point in the history
Avoid including garbage from previous rx data in the printk messages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Mar 26, 2021
1 parent a519c49 commit 4a22f2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mt7915/mcu.c
Expand Up @@ -521,6 +521,7 @@ mt7915_mcu_rx_log_message(struct mt7915_dev *dev, struct sk_buff *skb)
break;
}

skb->data[skb->len] = 0;
wiphy_info(mt76_hw(dev)->wiphy, "%s: %s", type, data);
}

Expand Down

0 comments on commit 4a22f2f

Please sign in to comment.