Commit 18d647ae authored by Chuhong Yuan's avatar Chuhong Yuan Committed by David S. Miller

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: default avatarChuhong Yuan <hslester96@gmail.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c80ed84e
...@@ -2524,6 +2524,7 @@ static int gemini_ethernet_port_remove(struct platform_device *pdev) ...@@ -2524,6 +2524,7 @@ static int gemini_ethernet_port_remove(struct platform_device *pdev)
struct gemini_ethernet_port *port = platform_get_drvdata(pdev); struct gemini_ethernet_port *port = platform_get_drvdata(pdev);
gemini_port_remove(port); gemini_port_remove(port);
free_netdev(port->netdev);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment