Pan Nengyuan <[email protected]> 于2020年8月14日周五 下午6:29写道:
>
> Missing g_error_free() in vfio_ap_get_group() error path. Fix that.
>
> Reported-by: Euler Robot <[email protected]>
> Signed-off-by: Pan Nengyuan <[email protected]>

Reviewed-by: Li Qiang <[email protected]>

I see Cornelia Huck has merged this in his tree.
Don't know whether this series will go separate maintainer's tree or
as go only one maintainer's tree(maybe Paolo's misc tree?).


Thanks,
Li Qiang

> ---
> Cc: Cornelia Huck <[email protected]>
> Cc: Thomas Huth <[email protected]>
> Cc: Christian Borntraeger <[email protected]>
> Cc: Tony Krowiak <[email protected]>
> Cc: Halil Pasic <[email protected]>
> Cc: Pierre Morel <[email protected]>
> Cc: Alex Williamson <[email protected]>
> Cc: [email protected]
> ---
>  hw/vfio/ap.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c
> index b9330a8e6f..cec6fe1599 100644
> --- a/hw/vfio/ap.c
> +++ b/hw/vfio/ap.c
> @@ -71,6 +71,7 @@ static VFIOGroup *vfio_ap_get_group(VFIOAPDevice *vapdev, 
> Error **errp)
>      if (!group_path) {
>          error_setg(errp, "%s: no iommu_group found for %s: %s",
>                     VFIO_AP_DEVICE_TYPE, vapdev->vdev.sysfsdev, 
> gerror->message);
> +        g_error_free(gerror);
>          return NULL;
>      }
>
> --
> 2.18.2
>
>

Reply via email to