diff options
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index b60f33080a28..6e514831bda5 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -1526,7 +1526,7 @@ static ssize_t nr_hugepages_store_common(bool obey_mempolicy, | |||
1526 | struct hstate *h; | 1526 | struct hstate *h; |
1527 | NODEMASK_ALLOC(nodemask_t, nodes_allowed, GFP_KERNEL | __GFP_NORETRY); | 1527 | NODEMASK_ALLOC(nodemask_t, nodes_allowed, GFP_KERNEL | __GFP_NORETRY); |
1528 | 1528 | ||
1529 | err = strict_strtoul(buf, 10, &count); | 1529 | err = kstrtoul(buf, 10, &count); |
1530 | if (err) | 1530 | if (err) |
1531 | goto out; | 1531 | goto out; |
1532 | 1532 | ||
@@ -1617,7 +1617,7 @@ static ssize_t nr_overcommit_hugepages_store(struct kobject *kobj, | |||
1617 | if (h->order >= MAX_ORDER) | 1617 | if (h->order >= MAX_ORDER) |
1618 | return -EINVAL; | 1618 | return -EINVAL; |
1619 | 1619 | ||
1620 | err = strict_strtoul(buf, 10, &input); | 1620 | err = kstrtoul(buf, 10, &input); |
1621 | if (err) | 1621 | if (err) |
1622 | return err; | 1622 | return err; |
1623 | 1623 | ||