summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-25 15:00:24 +1100
committerDave Chinner <david@fromorbit.com>2015-03-25 15:00:24 +1100
commit5e9383f97e773e9a5385144ef5561f2ac0ee1349 (patch)
tree4ab0bccd3bf921b2b21252ec852e8e460461287f /fs/xfs
parent20dafeefac97d1a690b113f2a954dc84fdf8f290 (diff)
downloadlinux-stable-5e9383f97e773e9a5385144ef5561f2ac0ee1349.tar.gz
linux-stable-5e9383f97e773e9a5385144ef5561f2ac0ee1349.tar.bz2
linux-stable-5e9383f97e773e9a5385144ef5561f2ac0ee1349.zip
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 <joe@perches.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs')
-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)