diff options
author | Christoph Hellwig <hch@lst.de> | 2022-09-23 11:26:39 +0200 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2022-10-04 12:06:58 -0600 |
commit | 98828955971363e838149105c268b1fad905f15b (patch) | |
tree | 6b7dc0a5e4572008f1c1e91c99db3ab732682b65 /drivers/s390 | |
parent | drm/i915/gvt: Add missing vfio_unregister_group_dev() call (diff) | |
download | linux-dev-98828955971363e838149105c268b1fad905f15b.tar.xz linux-dev-98828955971363e838149105c268b1fad905f15b.zip |
drm/i915/gvt: fix a memory leak in intel_gvt_init_vgpu_types
gvt->types needs to be freed on error.
Fixes: bc90d097ae14 ("drm/i915/gvt: define weight according to vGPU type")
Reported-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: https://lore.kernel.org/r/20220923092652.100656-2-hch@lst.de
[aw: Correct fixes commit ID as reported by Stephen Rothwell]
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions