Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)