aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2023-07-05 15:17:58 +0100
committerMichael Brown <mcb30@ipxe.org>2023-07-05 15:17:58 +0100
commit59d065c9ac6e5476a21fb9b277f719fd4ae5b372 (patch)
treecd8fff7d2f112e0b5942daf31c32427f93a07ea6
parent48ae5d53617f3eacff825a128c56bd74b4860bea (diff)
downloadipxe-59d065c9ac6e5476a21fb9b277f719fd4ae5b372.zip
ipxe-59d065c9ac6e5476a21fb9b277f719fd4ae5b372.tar.gz
ipxe-59d065c9ac6e5476a21fb9b277f719fd4ae5b372.tar.bz2
[linux] Fix error control flow in af_packet_nic_probe()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/drivers/linux/af_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/linux/af_packet.c b/src/drivers/linux/af_packet.c
index 9fa6ef2..980bd46 100644
--- a/src/drivers/linux/af_packet.c
+++ b/src/drivers/linux/af_packet.c
@@ -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;