Commit f0993522 authored by Liu Shixin's avatar Liu Shixin Committed by Yongqiang Liu
Browse files

mm/memory.c: update the first page in clear_gigantic_page_chunk

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I57SM0


CVE: NA

--------------------------------

Patch "mm: parallelize clear_gigantic_page" make clear_gigantic_page
to be parallelized. But forgot to update the first page which results the
first page for each block is still the head page. Fix it by calculating
the first page for each block.

By the way, add a check to pointer p in order to prevent kernel panic.

Fixes: ae0cd4d4 ("mm: parallelize clear_gigantic_page")
Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 1bc9fed3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment