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