vrend: Fix the decode loop error exit

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Gert Wollny 4 years ago committed by Gert Wollny
parent cbc5616377
commit c575de50db
  1. 5
      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;

Loading…
Cancel
Save