Skip to content

Commit 18d647a

Browse files
WillLesterdavem330
authored andcommitted
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]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c80ed84 commit 18d647a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/cortina/gemini.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,6 +2524,7 @@ static int gemini_ethernet_port_remove(struct platform_device *pdev)
25242524
struct gemini_ethernet_port *port = platform_get_drvdata(pdev);
25252525

25262526
gemini_port_remove(port);
2527+
free_netdev(port->netdev);
25272528
return 0;
25282529
}
25292530

0 commit comments

Comments
 (0)