mirror of https://github.com/ipxe/ipxe.git
[settings] Reject attempts to change a network device's bus ID
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/1/head
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…
Reference in New Issue