Re: [PATCH v1 10/18] vfio/ccw: Create a CLOSE FSM event

Jason Gunthorpe
2022-06-02T19:10:34Z

On Thu, Jun 02, 2022 at 07:19:40PM +0200, Eric Farman wrote:

> @@ -278,7 +269,12 @@ static void vfio_ccw_sch_remove(struct subchannel *sch)
>
> static void vfio_ccw_sch_shutdown(struct subchannel *sch)
> {
> - vfio_ccw_sch_quiesce(sch);
> + struct vfio_ccw_private *private = dev_get_drvdata(&sch->dev);
> +
> + if (!private)
> + return;

WARN_ON here too

Looks Ok otherwise

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason