[virtio-block] bug in non VM path
travisg opened this issue · comments
lk/dev/virtio/block/virtio-block.c
Line 237 in 5cbe219
The above code has an issue where in the non VM path it doesn't subtract from the len variable, this the code returns non zero, which causes the block based virtio wrappers to return an error.
Really, the function should return the total number of queued bytes and the wrapper should pass back non zero, but both the VM and non VM path need to be cleaned up and fixed.