octeontx2-af: debugfs: fix error return of allocations
authorNiels Dossche <dossche.niels@gmail.com>
Sat, 30 Apr 2022 19:46:56 +0000 (21:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 2 May 2022 21:27:39 +0000 (14:27 -0700)
commit0b9f1b265ee16cd991714fe310eb59b800c142c5
tree3a21888652cfcc5776311c94c8dfd15ed550dd0a
parente1ff0bd673505727e0d7fc062f4d6745ec8ca8bb
octeontx2-af: debugfs: fix error return of allocations

Current memory failure code in the debugfs returns -ENOSPC. This is
normally used for indicating that there is no space left on the
device and is not applicable for memory allocation failures.
Replace this with -ENOMEM.

Signed-off-by: Niels Dossche <dossche.niels@gmail.com>
Link: https://lore.kernel.org/r/20220430194656.44357-1-dossche.niels@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c