summaryrefslogtreecommitdiff
path: root/drivers/vfio
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2020-05-30 01:17:33 +0300
committerAlex Williamson <alex.williamson@redhat.com>2020-05-30 01:17:33 +0300
commitea20868c7197827f2585a65800b9de7d2b2c4bee (patch)
treee277e40cd1bc5cbb0b9a5a320852b6fdb46a2e29 /drivers/vfio
parent95fc87b44104d9a524ff3e975bbfbd7c1f1a2dd5 (diff)
parentaa8ba13cae3134b8ef1c1b6879f66372531da738 (diff)
downloadlinux-ea20868c7197827f2585a65800b9de7d2b2c4bee.tar.xz
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);
}