From c575de50db35b9b7aadc237384f9a6a4367a4e98 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 14 Jan 2021 15:08:48 +0100 Subject: [PATCH] vrend: Fix the decode loop error exit Signed-off-by: Gert Wollny Reviewed-by: Chia-I Wu --- src/vrend_decode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vrend_decode.c b/src/vrend_decode.c index 74e2ea8..1f620dc 100644 --- a/src/vrend_decode.c +++ b/src/vrend_decode.c @@ -1619,10 +1619,9 @@ static int vrend_decode_ctx_submit_cmd(struct virgl_context *ctx, ret = decode_table[cmd](gdctx->grctx, buf, len); if (ret) { - if (ret == EINVAL) { + if (ret == EINVAL) vrend_report_buffer_error(gdctx->grctx, *buf); - return ret; - } + return ret; } } return 0;