]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: IRQ names require allocated memory
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 3 Dec 2014 00:07:18 +0000 (18:07 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 18:13:39 +0000 (13:13 -0500)
commit78ad9c4d127a865d07cb1190861ad07953df3202
tree0351fc9013b4ce8ac3b79a709fd3ead907428a47
parent93b1742eaa7106d07eb0441f5663b1d22221be5e
amd-xgbe: IRQ names require allocated memory

When requesting an irq, the name passed in must be (part of) allocated
memory. The irq name was a local variable and resulted in random
characters when listing /proc/interrupts. Add a character field to the
xgbe_channel structure to hold the irq name and use that.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
drivers/net/ethernet/amd/xgbe/xgbe.h