diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-09-21 13:27:02 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 20:35:17 -0700 |
commit | 059fbe8b5171960bd5c2371bb327ac18733773de (patch) | |
tree | add2af8a38802b033c43b16a5ea68c7b170f6749 /include | |
parent | 5d6b66c031ed040c6eeedbc0b0477511edcbfa1b (diff) | |
download | linux-059fbe8b5171960bd5c2371bb327ac18733773de.tar.gz linux-059fbe8b5171960bd5c2371bb327ac18733773de.tar.bz2 linux-059fbe8b5171960bd5c2371bb327ac18733773de.zip |
net: phy: Fix truncation of large IRQ numbers in phy_attached_print()
Given NR_IRQS is 2048 on sparc64, and even 32784 on alpha, 3 digits is
not enough to represent interrupt numbers on all architectures. Hence
PHY interrupt numbers may be truncated during printing.
Increase the buffer size from 4 to 8 bytes to fix this.
Fixes: 5e369aefdce4818c ("net: stmmac: Delete dead code for MDIO registration")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions