mirror of https://github.com/ipxe/ipxe.git
[linux] Fix error control flow in af_packet_nic_probe()
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/990/head
parent
48ae5d5361
commit
59d065c9ac
|
@ -300,9 +300,9 @@ static int af_packet_nic_probe ( struct linux_device *device,
|
|||
|
||||
return 0;
|
||||
|
||||
err_settings:
|
||||
unregister_netdev(netdev);
|
||||
err_register:
|
||||
err_settings:
|
||||
netdev_nullify(netdev);
|
||||
netdev_put(netdev);
|
||||
return rc;
|
||||
|
|
Loading…
Reference in New Issue