mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7921: fix a precision vs width bug in printk
Precision %.*s was intended instead of width %*s. The original code
is potentially an information leak.
Fixes: c7cc5ec57303 ("mt76: mt7921: rework mt7921_mcu_debug_msg_event routine")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
ded14da5ea
commit
aaf0d254f9
+1
-1
@@ -502,7 +502,7 @@ mt7921_mcu_debug_msg_event(struct mt7921_dev *dev, struct sk_buff *skb)
|
||||
if (!msg->content[i])
|
||||
msg->content[i] = ' ';
|
||||
}
|
||||
wiphy_info(mt76_hw(dev)->wiphy, "%*s", len, msg->content);
|
||||
wiphy_info(mt76_hw(dev)->wiphy, "%.*s", len, msg->content);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user