Skip to content
Commit 57688eb8 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski
Browse files

mlxsw: minimal: Return -ENOMEM on allocation failure

These error paths return success but they should return -ENOMEM.

Fixes: 01328e23

 ("mlxsw: minimal: Extend module to port mapping with slot index")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
Reviewed-by: default avatarIdo Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/YwjgwoJ3M7Kdq9VK@kili
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 92f97c00
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