mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 09:07:49 +07:00
ef86ea982b
There is a possible use-after-free issue in the axienet_probe():
1701: np = of_parse_phandle(pdev->dev.of_node, "axistream-connected", 0);
1702: if (np) {
...
1787: of_node_put(np); ---> released here
1788: lp->eth_irq = platform_get_irq(pdev, 0);
1789: } else {
...
1801: }
1802: if (IS_ERR(lp->dma_regs)) {
...
1805: of_node_put(np); ---> double released here
1806: goto free_netdev;
1807: }
We solve this problem by removing the unnecessary of_node_put().
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
ll_temac_main.c | ||
ll_temac_mdio.c | ||
ll_temac.h | ||
Makefile | ||
xilinx_axienet_main.c | ||
xilinx_axienet_mdio.c | ||
xilinx_axienet.h | ||
xilinx_emaclite.c |