Skip to content

Commit 196073f

Browse files
Wei Yongjundavem330
authored andcommitted
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: 35aefaa ("net: ixp4xx_hss: Convert to use DT probing") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9c32950 commit 196073f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/wan/ixp4xx_hss.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,6 @@ static int ixp4xx_hss_remove(struct platform_device *pdev)
15081508
unregister_hdlc_device(port->netdev);
15091509
free_netdev(port->netdev);
15101510
npe_release(port->npe);
1511-
kfree(port);
15121511
return 0;
15131512
}
15141513

0 commit comments

Comments
 (0)