diff options
| author | Vladimir Oltean <[email protected]> | 2023-02-06 09:49:32 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2023-02-07 14:39:06 +0000 |
| commit | ca8e4cbff6d5360efc2ced519c4609e02e88cc59 (patch) | |
| tree | 17942766f48ce6f0a2549a5ec4eff437f50ff8f9 /lib/find_bit.c | |
| parent | net: openvswitch: reduce cpu_used_mask memory (diff) | |
| download | kernel-ca8e4cbff6d5360efc2ced519c4609e02e88cc59.tar.gz kernel-ca8e4cbff6d5360efc2ced519c4609e02e88cc59.zip | |
ethtool: mm: fix get_mm() return code not propagating to user space
If ops->get_mm() returns a non-zero error code, we goto out_complete,
but there, we return 0. Fix that to propagate the "ret" variable to the
caller. If ops->get_mm() succeeds, it will always return 0.
Fixes: 2b30f8291a30 ("net: ethtool: add support for MAC Merge layer")
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions
