diff options
author | Jason Wang <[email protected]> | 2018-01-23 17:27:26 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-01-24 16:55:38 -0500 |
commit | 6f3180afbb22106d96a1320e175562f36a4d3506 (patch) | |
tree | 79691386ba561416fd16ef230077f913782f84a0 /lib/debugobjects.c | |
parent | e9cb4239134c860e5f92c75bf5321bd377bb505b (diff) |
vhost: do not try to access device IOTLB when not initialized
The code will try to access dev->iotlb when processing
VHOST_IOTLB_INVALIDATE even if it was not initialized which may lead
to NULL pointer dereference. Fixes this by check dev->iotlb before.
Fixes: 6b1e6cc7855b0 ("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]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions