Commit bc358da3 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

decode: prevent handle 0 object creation

Signed-off-by: default avatarMarc-André Lureau <>
parent fbee79ae
......@@ -624,6 +624,8 @@ static int vrend_decode_create_object(struct vrend_decode_ctx *ctx, int length)
if (length < 1)
return EINVAL;
if (handle == 0)
return EINVAL;
switch (obj_type){
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment