Ensure vdp failure latching

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