Browse Source

[settings] Reject attempts to change a network device's bus ID

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
a04603a070
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/net/netdev_settings.c

+ 2
- 0
src/net/netdev_settings.c View File

@@ -81,6 +81,8 @@ static int netdev_store ( struct settings *settings, struct setting *setting,
81 81
 		memcpy ( netdev->ll_addr, data, len );
82 82
 		return 0;
83 83
 	}
84
+	if ( setting_cmp ( setting, &busid_setting ) == 0 )
85
+		return -ENOTSUP;
84 86
 
85 87
 	return generic_settings_store ( settings, setting, data, len );
86 88
 }

Loading…
Cancel
Save