[linux] Fix error control flow in af_packet_nic_probe()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/990/head
Michael Brown 2023-07-05 15:17:58 +01:00
parent 48ae5d5361
commit 59d065c9ac
1 changed files with 1 additions and 1 deletions

View File

@ -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;