mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 14:32:49 +03:00
[linux] Fix error control flow in af_packet_nic_probe()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user