[PATCH 14/14] vfio/mdev: add mdev available instance checking to the core
Christoph Hellwig
hch at lst.de
Tue Jul 5 08:05:20 UTC 2022
On Mon, Jul 04, 2022 at 12:07:36PM -0300, Jason Gunthorpe wrote:
> I think the kobject_put() needs to be after this reference to parent
> because mdev_type_release() will:
>
> put_device(type->parent->dev);
>
> Which is potentially the last reference holding dev, and thus parent,
> at this moment.
Yes, I've moved it.
More information about the intel-gvt-dev
mailing list