提交 18d647ae 编写于 作者: C Chuhong Yuan 提交者: 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: NChuhong Yuan <hslester96@gmail.com>
Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册