diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2018-05-10 13:26:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-11 11:56:05 -0400 |
commit | 8ccc113172e4c1ebef45c2433f3c32ed6ae1b9c9 (patch) | |
tree | f99ca86a37d6f85091b9587d9b04be8c4190b7cd /arch/sparc/lib/ffs.S | |
parent | 89dd2e752c7beb773c36e623773d50d5f34da711 (diff) | |
download | op-kernel-dev-8ccc113172e4c1ebef45c2433f3c32ed6ae1b9c9.zip op-kernel-dev-8ccc113172e4c1ebef45c2433f3c32ed6ae1b9c9.tar.gz |
mlxsw: core: Fix an error handling path in 'mlxsw_core_bus_device_register()'
Resources are not freed in the reverse order of the allocation.
Labels are also mixed-up.
Fix it and reorder code and labels in the error handling path of
'mlxsw_core_bus_device_register()'
Fixes: ef3116e5403e ("mlxsw: spectrum: Register KVD resources with devlink")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/lib/ffs.S')
0 files changed, 0 insertions, 0 deletions