]> git.baikalelectronics.ru Git - kernel.git/commit
net: netcp: drop kfree for memory allocated with devm_kzalloc
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 22 Oct 2016 12:32:04 +0000 (12:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Oct 2016 21:21:59 +0000 (17:21 -0400)
commitb830398805c1f2b429ac2a89068d7f2ecdde7485
tree309af29b7bd37b593a43b49bbb6a83dd5daa1f44
parent1ecec5354d90f0341d06032b62de31833239a9ae
net: netcp: drop kfree for memory allocated with devm_kzalloc

It's not necessary to free memory allocated with devm_kzalloc in the
remove path and using kfree leads to a double free.

Fixes: 0c4c6ed6bda1 ("net: netcp: Add Keystone NetCP core ethernet
driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_core.c