[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181226190750.9820-1-pakki001@umn.edu>
Date: Wed, 26 Dec 2018 13:07:49 -0600
From: Aditya Pakki <pakki001@....edu>
To: pakki001@....edu
Cc: kjlu@....edu, Andrew Morton <akpm@...ux-foundation.org>,
Vlastimil Babka <vbabka@...e.cz>,
Michal Hocko <mhocko@...e.com>,
David Rientjes <rientjes@...gle.com>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Yang Shi <yang.shi@...ux.alibaba.com>,
Johannes Weiner <hannes@...xchg.org>,
Joe Perches <joe@...ches.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] mm: compaction.c: Propagate return value upstream
In sysctl_extfrag_handler(), proc_dointvec_minmax() can return an
error. The fix propagates the error upstream in case of failure.
Signed-off-by: Aditya Pakki <pakki001@....edu>
---
mm/compaction.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/mm/compaction.c b/mm/compaction.c
index 7c607479de4a..5703b4051796 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -1879,9 +1879,8 @@ int sysctl_compaction_handler(struct ctl_table *table, int write,
int sysctl_extfrag_handler(struct ctl_table *table, int write,
void __user *buffer, size_t *length, loff_t *ppos)
{
+ return
proc_dointvec_minmax(table, write, buffer, length, ppos);
-
- return 0;
}
#if defined(CONFIG_SYSFS) && defined(CONFIG_NUMA)
--
2.17.1
Powered by blists - more mailing lists