diff options
| author | 2022-09-16 15:22:54 +0800 | |
|---|---|---|
| committer | 2022-10-03 14:03:30 -0700 | |
| commit | dae37a5dccd104fc465241c42d9e17756ddebbc1 (patch) | |
| tree | f7f65d5a90c88f7d233eca6c715d3f49480ed6ad /include/linux/timerqueue.h | |
| parent | mm/page_alloc: use helper macro SZ_1{K,M} (diff) | |
| download | linux-dev-dae37a5dccd104fc465241c42d9e17756ddebbc1.tar.xz linux-dev-dae37a5dccd104fc465241c42d9e17756ddebbc1.zip | |
mm/page_alloc: init local variable buddy_pfn
The local variable buddy_pfn could be passed to buddy_merge_likely()
without initialization if the passed in order is MAX_ORDER - 1. This
looks buggy but buddy_pfn won't be used in this case as there's a order >=
MAX_ORDER - 2 check. Init buddy_pfn to 0 anyway to avoid possible future
misuse.
Link: https://lkml.kernel.org/r/20220916072257.9639-14-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
