Commit 4b33a2fc authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix buglet

parent 12fc791e
......@@ -77,8 +77,10 @@ v1d_range_bytes(struct req *req, enum vdp_action act, const void *ptr,
l = req->range_high - req->range_off;
if (l > len)
l = len;
if (act > VDP_NULL || l > 0)
if (l > 0)
retval = VDP_bytes(req, act, p, l);
else if (act > VDP_NULL)
retval = VDP_bytes(req, act, p, 0);
req->range_off += len;
return (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