david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2011-03-23 01:24:37 +00:00
parent 162892616c
commit a04603a070
1 changed files with 2 additions and 0 deletions

View File

@ -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 );
}