]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Fix error reporting in cmd_resource_set()
authorPhil Sutter <phil@nwl.cc>
Thu, 18 Oct 2018 11:28:23 +0000 (13:28 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 22 Oct 2018 17:05:18 +0000 (10:05 -0700)
commitb1ffc1f465928706e22d585932cead8d74f021de
tree443e0d3afba79ce23e076f310ba2a20edf1c25e3
parent92885e1973a5493980dc1341cb469504e7203cdc
devlink: Fix error reporting in cmd_resource_set()

resource_path_parse() returns either zero or a negative error code,
hence the negated value must be passed to strerror().

Fixes: 8cd644095842a ("devlink: Add support for devlink resource abstraction")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
devlink/devlink.c