Commit 5e9383f9 authored by Joe Perches's avatar Joe Perches Committed by Dave Chinner

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: default avatarJoe Perches <joe@perches.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent 20dafeef
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment