summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ni
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2020-07-29 02:15:07 +0300
committerDavid S. Miller <davem@davemloft.net>2020-07-31 02:51:53 +0300
commit82274d075536322368ce710b211c41c37c4740b9 (patch)
tree45413c09e352562570d5ec21ad37441e117bc3c3 /drivers/net/ethernet/ni
parent65550098c1c4db528400c73acf3e46bfa78d9264 (diff)
downloadlinux-82274d075536322368ce710b211c41c37c4740b9.tar.xz
devlink: ignore -EOPNOTSUPP errors on dumpit
Number of .dumpit functions try to ignore -EOPNOTSUPP errors. Recent change missed that, and started reporting all errors but -EMSGSIZE back from dumps. This leads to situation like this: $ devlink dev info devlink answers: Operation not supported Dump should not report an error just because the last device to be queried could not provide an answer. To fix this and avoid similar confusion make sure we clear err properly, and not leave it set to an error if we don't terminate the iteration. Fixes: c62c2cfb801b ("net: devlink: don't ignore errors during dumpit") Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ni')
0 files changed, 0 insertions, 0 deletions