Re: [PATCH v2 1/1] vfio: check vfio_register_iommu_driver() return value

From: Cornelia Huck
Date: Thu Jun 23 2022 - 09:26:22 EST


On Wed, Jun 22 2022, Bo Liu <liubo03@xxxxxxxxxx> wrote:

> As vfio_register_iommu_driver() can fail, we should check the return value.
>
> Signed-off-by: Bo Liu <liubo03@xxxxxxxxxx>
> ---
> Changes from v1:
> -move the pr_info()
> -move #endif above the ret test
> -remove #ifdefs above the err_driver_register
>
> drivers/vfio/vfio.c | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)

Acked-by: Cornelia Huck <cohuck@xxxxxxxxxx>