diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 6df8065039eb01d0be0e8a030868aa330328412b..65f38c218207231e0bf5b612ccacc5858be1b4e0 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1278,6 +1278,9 @@ static unsigned long set_max_huge_pages(struct hstate *h, unsigned long count, if (!ret) goto out; + /* Bail for signals. Probably ctrl-c from user */ + if (signal_pending(current)) + goto out; } /*