Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtio: check VirtQueue Vring object is set
A guest could attempt to use an uninitialised VirtQueue object or unset Vring.align leading to a arithmetic exception. Add check to avoid it. Reported-by: Zhangboxian <[email protected]> Signed-off-by: Prasad J Pandit <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Cornelia Huck <[email protected]>
- Loading branch information