Ensure vdp failure latching

parent 2a20a74e
......@@ -1080,7 +1080,9 @@ vdp_pesi_bytes(struct vdp_ctx *vdx, enum vdp_action act, void **priv,
if (pecx->state == 3 && len > 0)
retval = VDP_bytes(vdx, act, pp, len);
pecx->l -= len;
return (tree->retval);
if (retval)
break;
return (0);
case 99:
/*
* VEP does not account for the PAD+CRC+LEN
......@@ -1121,7 +1123,7 @@ vdp_pesi_bytes(struct vdp_ctx *vdx, enum vdp_action act, void **priv,
break;
}
if (retval)
return (retval);
tree->retval = retval;
if (tree->retval)
return (tree->retval);
}
......
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