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

Christoph Hellwig hch at lst.de
Wed Apr 13 05:59:17 UTC 2022


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 at nvidia.com>

This is all gone with the i915 refactor.


More information about the Intel-gfx mailing list