mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +08:00
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>
This commit is contained in:
parent
20dafeefac
commit
5e9383f97e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user