From: Andrea Claudi Date: Sat, 1 May 2021 16:39:22 +0000 (+0200) Subject: dcb: fix return value on dcb_cmd_app_show X-Git-Tag: v5.14.0~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfd89a6f8bbd0c1fb11890cf826ae1ed467736f7;p=thirdparty%2Fiproute2.git dcb: fix return value on dcb_cmd_app_show dcb_cmd_app_show() is supposed to return EINVAL if an incorrect argument is provided. Fixes: 8e9bed1493f5 ("dcb: Add a subtool for the DCB APP object") Signed-off-by: Andrea Claudi Reviewed-by: Petr Machata Signed-off-by: David Ahern --- diff --git a/dcb/dcb_app.c b/dcb/dcb_app.c index c4816bc29..28f406144 100644 --- a/dcb/dcb_app.c +++ b/dcb/dcb_app.c @@ -667,7 +667,7 @@ static int dcb_cmd_app_show(struct dcb *dcb, const char *dev, int argc, char **a out: close_json_object(); dcb_app_table_fini(&tab); - return 0; + return ret; } static int dcb_cmd_app_flush(struct dcb *dcb, const char *dev, int argc, char **argv)