axeld+stippi:
When initializing driver settings, make sure to set the parameter count to 0, because these settings have not been parsed yet. This allows us to safely free the settings. Freeing the settings is triggered in load_driver_settings() if we encounter settings which have been originally loaded by the boot_loader, which might be stale. I think the bug would trigger for settings which had been loaded by the boot_loader but had never been parsed. With this change, I can use the userlandfs on all my machines. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35166 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -646,6 +646,7 @@ driver_settings_init(kernel_args *args)
|
||||
|
||||
strlcpy(handle->name, settings->name, sizeof(handle->name));
|
||||
handle->settings.parameters = NULL;
|
||||
handle->settings.parameter_count = 0;
|
||||
handle->magic = 0;
|
||||
// this triggers parsing the settings when they are actually used
|
||||
|
||||
|
||||
Reference in New Issue
Block a user