Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 122ff80e authored by Wei Yang's avatar Wei Yang Committed by Andrew Morton
Browse files

mm/sparse: guard the size of mem_section is power of 2

We usually have this check, while commit 2a3cb8ba ("mm/sparse: delete
old sparse_init and enable new one") missed to take it.

Link: https://lkml.kernel.org/r/20240416012559.4536-1-richard.weiyang@gmail.com


Signed-off-by: default avatarWei Yang <richard.weiyang@gmail.com>
Acked-by: default avatarOscar Salvador <osalvador@suse.de>
Reviewed-by: default avatarPasha Tatashin <pasha.tatashin@soleen.com>
Cc: "Mike Rapoport (IBM)" <rppt@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 5ec5aab7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment