]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmicro: replace kzalloc with devm_kzalloc
authorJoao Pinto <Joao.Pinto@synopsys.com>
Tue, 7 Mar 2017 15:27:36 +0000 (15:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 21:17:08 +0000 (13:17 -0800)
commitb9c5c9acec667d8ac73883f97928542aa13dd187
tree52aad1e67c2bb00606215d716cf552ce40d06515
parent9829ae6bd01253d1efcc64674a29fbe5ab8b7392
net: stmicro: replace kzalloc with devm_kzalloc

The axi variable was not being freed upon device removal.
With devm_kzalloc it ensures that it is properly freed.

Signed-off-by: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c