RE: [PATCH v5 12/18] vfio: cleanup and refactor

Hemant Agrawal
2025-11-20T07:04:53Z

> diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c
> index 550d4e0e8d..4b11b38322 100644
> --- a/drivers/bus/fslmc/fslmc_vfio.c
> +++ b/drivers/bus/fslmc/fslmc_vfio.c
> @@ -364,9 +364,9 @@ fslmc_get_group_id(const char *group_name,
> /* get group number */
> ret = rte_vfio_get_group_num(SYSFS_FSL_MC_DEVICES,
> group_name, groupid);
> - if (ret <= 0) {
> + if (ret < 0) {
> DPAA2_BUS_ERR("Find %s IOMMU group", group_name);
> - if (ret < 0)
> + if (rte_errno != ENODEV)
> return ret;
>
> return -EIO;
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>