From: Joe Perches Date: Wed, 25 Mar 2015 04:00:24 +0000 (+1100) Subject: xfs: Fix incorrect positive ENOMEM return X-Git-Tag: firefly_0821_release~176^2~1877^2~3^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5e9383f97e773e9a5385144ef5561f2ac0ee1349;p=firefly-linux-kernel-4.4.55.git 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 Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- 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)