]> 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)
commit53d3ff386f41a5d250444c256063817ba5ba8ec4
tree0351fc9013b4ce8ac3b79a709fd3ead907428a47
parent38a3291da0d721d65361bc4bfcf30909cd92e1b5
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