Re: [PATCH v11 05/12] vhost-vdpa: Handle the failure of vdpa_reset()

From: Stefano Garzarella
Date: Tue Aug 24 2021 - 07:12:20 EST


On Wed, Aug 18, 2021 at 08:06:35PM +0800, Xie Yongji wrote:
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@xxxxxxxxxxxxx>
---
drivers/vhost/vdpa.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

Reviewed-by: Stefano Garzarella <sgarzare@xxxxxxxxxx>