]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f766d1c230aa1f6282ab0208165870930238af6
tree3a21888652cfcc5776311c94c8dfd15ed550dd0a
parent7496618556e25a127a27601685d52f7a6907ace1
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