mirror of
https://github.com/xcat2/xNBA.git
synced 2025-05-31 01:56:37 +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:
parent
162892616c
commit
a04603a070
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user