Commit c5fd2410 authored by Liu Shixin's avatar Liu Shixin
Browse files

mm/dynamic_hugetlb: fix type error of pfn in __hpool_split_gigantic_page()

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


CVE: NA

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

The type of pfn is int, which can result in truncation.
Change its type to unsigned long to fix the problem.

Fixes: eef7b4fd ("mm/dynamic_hugetlb: use pfn to traverse subpages")
Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
parent 2a9df328
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment