Re: [PATCH 6/9] drm/i915/gvt: Add missing module_put() in error unwind

Christoph Hellwig
2022-04-13T05:59:40Z

On Tue, Apr 12, 2022 at 12:53:33PM -0300, Jason Gunthorpe wrote:
> try_module_get() must be undone if kvmgt_guest_init() fails or we leak the
> module reference count on the failure path since the close_device op is
> never called in this case.
>
> Fixes: 9bdb073464d6 ("drm/i915/gvt: Change KVMGT as self load module")
> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

This is all gone with the i915 refactor.