Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vfio/mdev: update outdated comment

The function add_mdev_supported_type() was renamed mdev_type_add() in
commit da44c340c4fe ("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>

authored by

Julia Lawall and committed by
Alex Williamson
ffc987b3 24d479d2

+1 -1
+1 -1
drivers/vfio/mdev/mdev_sysfs.c
··· 156 156 struct mdev_type *type = to_mdev_type(kobj); 157 157 158 158 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() */ 160 160 put_device(type->parent->dev); 161 161 } 162 162