Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99e45ee6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dynamic_debug: Handle kstrdup failure in dynamic_debug_init"

parents d25fbcec 7d727ae5
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1027,9 +1027,13 @@ static int __init dynamic_debug_init(void)
	 * slightly noisy if verbose, but harmless.
	 */
	cmdline = kstrdup(saved_command_line, GFP_KERNEL);
	if (cmdline) {
		parse_args("dyndbg params", cmdline, NULL,
			   0, 0, 0, &ddebug_dyndbg_boot_param_cb);
		kfree(cmdline);
	} else
		pr_err("Failed to parse boot args for dyndbg params\n");

	return 0;

out_err: