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

Commit 2a38d35e authored by Neeraj Upadhyay's avatar Neeraj Upadhyay
Browse files

soc: qcom: Create a zero filled initial buffer for ftrace/boot log



Use kzalloc() to create a zero filled initial buffer for
ftrace minidump and boot logs.

Change-Id: I1655ad4bafea35335256c0f5eb9d7bf432c675f7
Signed-off-by: default avatarNeeraj Upadhyay <neeraju@codeaurora.org>
parent 1a6f8ce5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -599,7 +599,7 @@ static void md_register_trace_buf(void)
	struct md_region md_entry;
	void *buffer_start;

	buffer_start = kmalloc(MD_FTRACE_BUF_SIZE, GFP_KERNEL);
	buffer_start = kzalloc(MD_FTRACE_BUF_SIZE, GFP_KERNEL);

	if (!buffer_start)
		return;
+1 −1
Original line number Diff line number Diff line
@@ -259,7 +259,7 @@ static void boot_log_init(void)
	else
		size = BOOT_LOG_SIZE;

	start = kmalloc(size, GFP_KERNEL);
	start = kzalloc(size, GFP_KERNEL);
	if (!start)
		goto out;