net: gemini: add missed free_netdev
PATCH 1/1 net: gemini: add missed free_netdev
This driver forgets to free allocated netdev in remove like what is done in probe failure.
Add the free to fix it.
Signed-off-by Chuhong Yuan <[email protected]>
--- drivers/net/ethernet/cortina/gemini.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/cortina/gemini.c +1 -0
@@ -2524,6 +2524,7 @@ static int gemini_ethernet_port_remove(struct platform_device *pdev)struct gemini_ethernet_port *port =platform_get_drvdata (pdev);gemini_port_remove (port); +free_netdev (port->netdev);return 0 ; }
Signature · 1 line
2.24.0
Quoted 5 lines · Chuhong Yuan
This driver forgets to free allocated netdev in remove like what is done in probe failure.
Add the free to fix it.Signed-off-by Chuhong Yuan <[email protected]>
Looks correct!
Reviewed-by Linus Walleij <[email protected]>
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
David Miller
maintainerFrom: Chuhong Yuan <[email protected]>
Date: Fri, 15 Nov 2019 14:24:54 +0800
Quoted 5 lines
This driver forgets to free allocated netdev in remove like what is done in probe failure.
Add the free to fix it.Signed-off-by Chuhong Yuan <[email protected]>
Applied and queued up for -stable, thank you.