Skip to content

Commit ffc987b

Browse files
JuliaLawallawilliam
authored andcommitted
vfio/mdev: update outdated comment
The function add_mdev_supported_type() was renamed mdev_type_add() in commit da44c34 ("vfio/mdev: simplify mdev_type handling"). Update the comment accordingly. Note that just as mdev_type_release() now states that its put pairs with the get in mdev_type_add(), mdev_type_add() already stated that its get pairs with the put in mdev_type_release(). Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20251230164113.102604-1-Julia.Lawall@inria.fr Signed-off-by: Alex Williamson <alex@shazbot.org>
1 parent 24d479d commit ffc987b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/vfio/mdev/mdev_sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static void mdev_type_release(struct kobject *kobj)
156156
struct mdev_type *type = to_mdev_type(kobj);
157157

158158
pr_debug("Releasing group %s\n", kobj->name);
159-
/* Pairs with the get in add_mdev_supported_type() */
159+
/* Pairs with the get in mdev_type_add() */
160160
put_device(type->parent->dev);
161161
}
162162

0 commit comments

Comments
 (0)