]> git.karo-electronics.de Git - linux-beck.git/commitdiff
xfs: Fix incorrect positive ENOMEM return
authorJoe Perches <joe@perches.com>
Wed, 25 Mar 2015 04:00:24 +0000 (15:00 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 25 Mar 2015 04:00:24 +0000 (15:00 +1100)
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>
fs/xfs/xfs_super.c

index 53c56a913778acb4982108e3aab918468bc87e33..194291381252c9e867afbe345f82f1c56bc582fa 100644 (file)
@@ -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)