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

Commit 8371d74d authored by Miles Chen's avatar Miles Chen
Browse files

[ALPS05475898] mm/page_owner: avoid use un-initialized data



Avoid using un-initialized data (NULL pointer).

Hardware name: Generic DT based system
PC is at show_max_hit_page+0x64/0xd0
LR is at show_max_hit_page+0x48/0xd0
pc : [<c05708e8>]    lr : [<c05708cc>]    psr: 600b0093
sp : de573ce0  ip : 00000000  fp : de573d48
r10: f0000080  r9 : c17e0fe8  r8 : c17e0f88
r7 : 00000000  r6 : c160a1c8  r5 : 600b0013  r4 : c17f61a4
r3 : c17ee1a4  r2 : 00003ff0  r1 : c17f61a4  r0 : 00000000

MTK-Commit-Id: a8cde2fde0292d894727b112443eec3958480e84

Change-Id: I41c601915701f0ddad6ae25f311524921267788f
CR-Id: ALPS05475898
Signed-off-by: default avatarMiles Chen <miles.chen@mediatek.com>
Feature: [Module]Official Kernel Patch
parent a8064dab
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -250,9 +250,11 @@ void show_max_hit_page(void)
		.skip = 0
	};
	spin_lock_irqsave(&max_found_lock, flags);
	if (max_found) {
		depot_fetch_stack(max_found->handle.handle, &trace);
		pr_info("max found hit=%d\n", max_found->hit);
		print_stack_trace(&trace, 2);
	}
	spin_unlock_irqrestore(&max_found_lock, flags);
}
#endif