Commit a7ec2bbb authored by Herbert Xu's avatar Herbert Xu Committed by Linus Torvalds

[PATCH] Fix netdev leak on probe failure in 3c527

This patch frees the netdev on failure in mc32_probe in 3c527.
parent 06d26886
...@@ -287,6 +287,7 @@ struct net_device *__init mc32_probe(int unit) ...@@ -287,6 +287,7 @@ struct net_device *__init mc32_probe(int unit)
} }
} }
free_netdev(dev);
return ERR_PTR(-ENODEV); return ERR_PTR(-ENODEV);
} }
......
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