vrend: reject cmd submission for ctx 0

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Chia-I Wu 5 years ago
parent 43686547f6
commit d25d59f9e8
  1. 3
      src/vrend_decode.c

@ -1475,6 +1475,9 @@ int vrend_decode_block(uint32_t ctx_id, uint32_t *block, int ndw)
bool bret;
int ret;
if (ctx_id == 0)
return EINVAL;
gdctx = vrend_decode_ctx_lookup(ctx_id);
if (!gdctx)
return EINVAL;

Loading…
Cancel
Save