mirror of
https://github.com/ipxe/ipxe
synced 2026-05-10 18:10:36 +03: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 );
|
memcpy ( netdev->ll_addr, data, len );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if ( setting_cmp ( setting, &busid_setting ) == 0 )
|
||||||
|
return -ENOTSUP;
|
||||||
|
|
||||||
return generic_settings_store ( settings, setting, data, len );
|
return generic_settings_store ( settings, setting, data, len );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user