summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2021-11-30 10:48:40 +0000
committerDavid S. Miller <davem@davemloft.net>2021-11-30 12:40:22 +0000
commit196073f9c44be0b4758ead11e51bc2875f98df29 (patch)
treed145e9f40771b881640cbb2fe7c90627b27757cb /drivers
parent9c32950f24f9e7df158887bdc80e5b79fbf5ed8d (diff)
downloadlinux-stable-196073f9c44be0b4758ead11e51bc2875f98df29.tar.gz
linux-stable-196073f9c44be0b4758ead11e51bc2875f98df29.tar.bz2
linux-stable-196073f9c44be0b4758ead11e51bc2875f98df29.zip
net: ixp4xx_hss: drop kfree for memory allocated with devm_kzalloc
It's not necessary to free memory allocated with devm_kzalloc and using kfree leads to a double free. Fixes: 35aefaad326b ("net: ixp4xx_hss: Convert to use DT probing") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wan/ixp4xx_hss.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wan/ixp4xx_hss.c b/drivers/net/wan/ixp4xx_hss.c
index d02d8a2eb99d..0b7d9f2f2b8b 100644
--- a/drivers/net/wan/ixp4xx_hss.c
+++ b/drivers/net/wan/ixp4xx_hss.c
@@ -1508,7 +1508,6 @@ static int ixp4xx_hss_remove(struct platform_device *pdev)
unregister_hdlc_device(port->netdev);
free_netdev(port->netdev);
npe_release(port->npe);
- kfree(port);
return 0;
}