Wed, Nov 06, 2019 at 03:52:31PM CET, weiyongjun1@xxxxxxxxxx wrote: >Fix to return negative error code -ENOMEM from the error handling >case instead of 0, as done elsewhere in this function. > >Fixes: 4a7f970f1240 ("mlxsw: spectrum: Replace port_to_module array with array of structs") >Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx> Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxxxx>