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

From: Alex Ghiti
Date: Tue Mar 05 2019 - 16:42:04 EST

On 3/5/19 4:35 PM, Mike Kravetz wrote:
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.
I will send the v5 of this patch tomorrow, I was waiting for architecture
maintainer remarks. I still miss sh, but I'm confident on this change.