OSDN Git Service

vhost-vdpa: Handle the failure of vdpa_reset()
authorXie Yongji <xieyongji@bytedance.com>
Tue, 31 Aug 2021 10:36:27 +0000 (18:36 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 6 Sep 2021 11:20:57 +0000 (07:20 -0400)
commit7f05630dc65d62df5d55ad3e1038ffbe5e2ce9c3
tree5c55645b6fe1633bc708615340ae527cedb64f31
parent0686082dbf7a204ca0fab326a820779e31666639
vhost-vdpa: Handle the failure of vdpa_reset()

The vdpa_reset() may fail now. This adds check to its return
value and fail the vhost_vdpa_open().

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20210831103634.33-7-xieyongji@bytedance.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vdpa.c