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

From: Mike Kravetz
Date: Tue Mar 05 2019 - 16:35:57 EST

On 3/5/19 1:16 PM, Andrew Morton wrote:
> On Mon, 4 Mar 2019 20:15:40 -0800 Mike Kravetz <mike.kravetz@xxxxxxxxxx> 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