summaryrefslogtreecommitdiffstats
path: root/src/net/netdevice.c
diff options
context:
space:
mode:
authorMichael Brown2010-12-01 17:34:23 +0100
committerMichael Brown2010-12-01 17:35:00 +0100
commit67b45186a572fb051e73fd88d4fc580a0d4d2f6b (patch)
tree9c1b23f9ceab3f9e9bf3ca0563103bc6230c0ee5 /src/net/netdevice.c
parent[iscsi] Disambiguate the common EINVAL cases (diff)
downloadipxe-67b45186a572fb051e73fd88d4fc580a0d4d2f6b.tar.gz
ipxe-67b45186a572fb051e73fd88d4fc580a0d4d2f6b.tar.xz
ipxe-67b45186a572fb051e73fd88d4fc580a0d4d2f6b.zip
[settings] Apply settings block name in register_settings()
Pass the settings block name as a parameter to register_settings(), rather than defining it with settings_init() (and then possibly changing it by directly manipulating settings->name). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/netdevice.c')
-rw-r--r--src/net/netdevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index 37887073..c7e907ad 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -422,7 +422,7 @@ int register_netdev ( struct net_device *netdev ) {
/* Register per-netdev configuration settings */
if ( ( rc = register_settings ( netdev_settings ( netdev ),
- NULL ) ) != 0 ) {
+ NULL, netdev->name ) ) != 0 ) {
DBGC ( netdev, "NETDEV %s could not register settings: %s\n",
netdev->name, strerror ( rc ) );
goto err_register_settings;