aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Perches <[email protected]>2015-03-25 15:00:24 +1100
committerDave Chinner <[email protected]>2015-03-25 15:00:24 +1100
commit5e9383f97e773e9a5385144ef5561f2ac0ee1349 (patch)
tree4ab0bccd3bf921b2b21252ec852e8e460461287f
parent20dafeefac97d1a690b113f2a954dc84fdf8f290 (diff)
xfs: Fix incorrect positive ENOMEM return
added a positive error return value. This value filters up through the return layers and should be negative as the other return values are in the same function. Signed-off-by: Joe Perches <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
-rw-r--r--fs/xfs/xfs_super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 53c56a913778..194291381252 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -1398,7 +1398,7 @@ xfs_init_percpu_counters(
error = percpu_counter_init(&mp->m_icount, 0, GFP_KERNEL);
if (error)
- return ENOMEM;
+ return -ENOMEM;
error = percpu_counter_init(&mp->m_ifree, 0, GFP_KERNEL);
if (error)