summaryrefslogtreecommitdiffstats
path: root/drivers/vfio
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2020-05-30 00:17:33 +0200
committerAlex Williamson <alex.williamson@redhat.com>2020-05-30 00:17:33 +0200
commitea20868c7197827f2585a65800b9de7d2b2c4bee (patch)
treee277e40cd1bc5cbb0b9a5a320852b6fdb46a2e29 /drivers/vfio
parentvfio: Selective dirty page tracking if IOMMU backed device pins pages (diff)
parentvfio/mdev: Fix reference count leak in add_mdev_supported_type (diff)
downloadlinux-ea20868c7197827f2585a65800b9de7d2b2c4bee.tar.xz
linux-ea20868c7197827f2585a65800b9de7d2b2c4bee.zip
Merge branch 'qiushi-wu-mdev-ref-v1' into v5.8/vfio/next
Diffstat (limited to 'drivers/vfio')
-rw-r--r--drivers/vfio/mdev/mdev_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/mdev/mdev_sysfs.c b/drivers/vfio/mdev/mdev_sysfs.c
index 8ad14e5c02bf..917fd84c1c6f 100644
--- a/drivers/vfio/mdev/mdev_sysfs.c
+++ b/drivers/vfio/mdev/mdev_sysfs.c
@@ -110,7 +110,7 @@ static struct mdev_type *add_mdev_supported_type(struct mdev_parent *parent,
"%s-%s", dev_driver_string(parent->dev),
group->name);
if (ret) {
- kfree(type);
+ kobject_put(&type->kobj);
return ERR_PTR(ret);
}