iproute2/devlink
Andrea Claudi 6b8fa2ea2d devlink: always check strslashrsplit() return value
strslashrsplit() return value is not checked in __dl_argv_handle(),
despite the fact that it can return EINVAL.

This commit fix it and make __dl_argv_handle() return error if
strslashrsplit() return an error code.

Fixes: 2f85a9c535 ("devlink: allow to parse both devlink and port handle in the same time")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2021-04-13 19:16:55 -07:00
..
.gitignore devlink: ignore build result 2016-04-11 13:35:12 -07:00
Makefile lib: Extract from devlink/mnlg a helper, mnlu_socket_open() 2020-11-13 19:43:15 -07:00
devlink.c devlink: always check strslashrsplit() return value 2021-04-13 19:16:55 -07:00
mnlg.c lib: Extract from devlink/mnlg a helper, mnlu_socket_recv_run() 2020-11-13 19:43:15 -07:00
mnlg.h devlink: implement flash status monitoring 2019-09-16 07:49:25 -07:00