]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
dcb: fix return value on dcb_cmd_app_show
authorAndrea Claudi <aclaudi@redhat.com>
Sat, 1 May 2021 16:39:22 +0000 (18:39 +0200)
committerDavid Ahern <dsahern@kernel.org>
Thu, 6 May 2021 14:47:57 +0000 (14:47 +0000)
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 <aclaudi@redhat.com>
Reviewed-by: Petr Machata <me@pmachata.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
dcb/dcb_app.c

index c4816bc2997f1107b26560d88da7da089adbb22c..28f4061444e274e885468c90ded7587d9fc126aa 100644 (file)
@@ -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)