File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,12 @@ static void __init setup_boot_config(void)
468
468
return ;
469
469
}
470
470
471
- #else
471
+ static void __init exit_boot_config (void )
472
+ {
473
+ xbc_destroy_all ();
474
+ }
475
+
476
+ #else /* !CONFIG_BOOT_CONFIG */
472
477
473
478
static void __init setup_boot_config (void )
474
479
{
@@ -481,7 +486,11 @@ static int __init warn_bootconfig(char *str)
481
486
pr_warn ("WARNING: 'bootconfig' found on the kernel command line but CONFIG_BOOT_CONFIG is not set.\n" );
482
487
return 0 ;
483
488
}
484
- #endif
489
+
490
+ #define exit_boot_config () do {} while (0)
491
+
492
+ #endif /* CONFIG_BOOT_CONFIG */
493
+
485
494
early_param ("bootconfig" , warn_bootconfig );
486
495
487
496
/* Change NUL term back to "=", to make "param" the whole string. */
@@ -1493,6 +1502,7 @@ static int __ref kernel_init(void *unused)
1493
1502
kprobe_free_init_mem ();
1494
1503
ftrace_free_init_mem ();
1495
1504
kgdb_free_init_mem ();
1505
+ exit_boot_config ();
1496
1506
free_initmem ();
1497
1507
mark_readonly ();
1498
1508
You can’t perform that action at this time.
0 commit comments