Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[netdevice] Fix failure path in register_netdev()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed May 23, 2016
1 parent 56c0147 commit 231adda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/net/netdevice.c
Expand Up @@ -733,6 +733,8 @@ int register_netdev ( struct net_device *netdev ) {
clear_settings ( netdev_settings ( netdev ) );
unregister_settings ( netdev_settings ( netdev ) );
err_register_settings:
list_del ( &netdev->list );
netdev_put ( netdev );
err_duplicate:
return rc;
}
Expand Down

0 comments on commit 231adda

Please sign in to comment.