OSDN Git Service

vdpa: harden the error path if get_iova_range failed
authorLongpeng <longpeng2@huawei.com>
Sat, 24 Dec 2022 11:48:48 +0000 (19:48 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 8 Jan 2023 06:54:22 +0000 (01:54 -0500)
commitbf7a2ad8b6dfab4adb40db44022e4c424b56421e
tree8d33f4c160cf2a7bee7baacd1f07786806d9b5b7
parentc672f348cb20e40c8c4fd1dfbd3e60d8202e3eac
vdpa: harden the error path if get_iova_range failed

We should stop if the GET_IOVA_RANGE ioctl failed.

Signed-off-by: Longpeng <longpeng2@huawei.com>
Message-Id: <20221224114848.3062-3-longpeng2@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
net/vhost-vdpa.c