Commit 21a86619 authored by François Romieu's avatar François Romieu Committed by David S. Miller

[NET]: Balance alloc_netdev() with free_netdev() in ethertap.

parent b56ea1b8
......@@ -106,12 +106,12 @@ static int __init ethertap_probe(int unit)
err = register_netdev(dev);
if (err)
goto out1;
goto out_free;
tap_map[unit]=dev;
return 0;
out1:
kfree(dev);
out_free:
free_netdev(dev);
out:
return err;
}
......
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