Re: [PATCH v4] mm/hugetlb: Fix unsigned overflow in __nr_hugepages_store_common()

Mike Kravetz
2019-03-05T21:35:57Z

On 3/5/19 1:16 PM, Andrew Morton wrote:
> On Mon, 4 Mar 2019 20:15:40 -0800 Mike Kravetz <mike.kravetz@oracle.com> wrote:
>
>> Andrew, this is on top of Alexandre Ghiti's "hugetlb: allow to free gigantic
>> pages regardless of the configuration" patch. Both patches modify
>> __nr_hugepages_store_common(). Alex's patch is going to change slightly
>> in this area.
>
> OK, thanks, I missed that. Are the changes significant?
>

No, changes should be minor. IIRC, just checking for a condition in an
error path.

--
Mike Kravetz