commit | 813dbeb656d6c90266f251d8bd2b02d445afa63f | [log] [tgz] |
---|---|---|
author | Jason Wang <[email protected]> | Tue Apr 09 12:10:25 2019 +0800 |
committer | David S. Miller <[email protected]> | Wed Apr 10 22:45:38 2019 -0700 |
tree | 24909b6cd09af83979b11b7e7b6f5b7cc2d2ba35 | |
parent | b4f47f3848eb70986f75d06112af7b48b7f5f462 [diff] |
vhost: reject zero size iova range We used to accept zero size iova range which will lead a infinite loop in translate_desc(). Fixing this by failing the request in this case. Reported-by: [email protected] Fixes: 6b1e6cc7 ("vhost: new device IOTLB API") Signed-off-by: Jason Wang <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Signed-off-by: David S. Miller <[email protected]>