net: devlink: don't ignore errors during dumpit
authorJiri Pirko <jiri@mellanox.com>
Fri, 4 Oct 2019 09:50:12 +0000 (11:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Oct 2019 22:15:20 +0000 (15:15 -0700)
commitc62c2cfb801b6c890641ed6c91ec9e5c7ad8e2f3
treeaa87c3dc3b79feb724eb46ca481894d69a066a71
parent511e6ca047457bcf200d9b6ad75e310b0e77af19
net: devlink: don't ignore errors during dumpit

Currently, some dumpit function may end-up with error which is not
-EMSGSIZE and this error is silently ignored. Use does not have clue
that something wrong happened. Instead of silent ignore, propagate
the error to user.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c