mirror of
https://github.com/xcat2/xNBA.git
synced 2025-08-13 23:10:17 +00:00
[settings] Reject attempts to change a network device's bus ID
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -81,6 +81,8 @@ static int netdev_store ( struct settings *settings, struct setting *setting,
|
||||
memcpy ( netdev->ll_addr, data, len );
|
||||
return 0;
|
||||
}
|
||||
if ( setting_cmp ( setting, &busid_setting ) == 0 )
|
||||
return -ENOTSUP;
|
||||
|
||||
return generic_settings_store ( settings, setting, data, len );
|
||||
}
|
||||
|
Reference in New Issue
Block a user