diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2020-05-30 01:17:33 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2020-05-30 01:17:33 +0300 |
commit | ea20868c7197827f2585a65800b9de7d2b2c4bee (patch) | |
tree | e277e40cd1bc5cbb0b9a5a320852b6fdb46a2e29 /drivers/vfio | |
parent | 95fc87b44104d9a524ff3e975bbfbd7c1f1a2dd5 (diff) | |
parent | aa8ba13cae3134b8ef1c1b6879f66372531da738 (diff) | |
download | linux-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.c | 2 |
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); } |