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

Commit 05a413f5 authored by Mohit Aggarwal's avatar Mohit Aggarwal Committed by Gerrit - the friendly Code Review server
Browse files

diag: Fix wrongly marked kmemleak_not_leak



Current code does mark kmemleak_not_leak wrongly which leads
to issue of coloring unknown object. This patch fixes
this issue.

Change-Id: Ic03105cdb0208175a284f1900c4fe6e423fdf61e
Signed-off-by: default avatarMohit Aggarwal <maggarwa@codeaurora.org>
parent c312a53c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -412,8 +412,8 @@ int diagfwd_peripheral_init(void)
				GFP_KERNEL);
		if (!early_init_info[transport])
			return -ENOMEM;
		kmemleak_not_leak(early_init_info[transport]);
	}
	kmemleak_not_leak(early_init_info);

	for (peripheral = 0; peripheral < NUM_PERIPHERALS; peripheral++) {
		for (transport = 0; transport < NUM_TRANSPORT; transport++) {