From 0ccd0a0b6f47b9ae82d666a101a1027a4baa7ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 19 Jan 2010 15:40:24 +0000 Subject: [PATCH] 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 --- src/system/libroot/os/driver_settings.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/libroot/os/driver_settings.c b/src/system/libroot/os/driver_settings.c index e69385ea0b..af6eea45a4 100644 --- a/src/system/libroot/os/driver_settings.c +++ b/src/system/libroot/os/driver_settings.c @@ -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