--- a/lib/stackdepot.c~lib-stackdepot-add-support-to-disable-stack-depot-fix-2 +++ a/lib/stackdepot.c @@ -151,8 +151,10 @@ static struct stack_record **stack_table static int __init is_stack_depot_disabled(char *str) { - kstrtobool(str, &stack_depot_disable); - if (stack_depot_disable) { + int ret; + + ret = kstrtobool(str, &stack_depot_disable); + if (!ret && stack_depot_disable) { pr_info("Stack Depot is disabled\n"); stack_table = NULL; }