linux-stable/drivers/vfio/mdev
Ricardo B. Marliere 77943f4d2d vfio: mdev: make mdev_bus_type const
Now that the driver core can properly handle constant struct bus_type,
move the mdev_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>
Link: https://lore.kernel.org/r/20240208-bus_cleanup-vfio-v1-1-ed5da3019949@marliere.net
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2024-02-22 12:19:33 -07:00
..
Kconfig vfio-mdev: turn VFIO_MDEV into a selectable symbol 2023-01-23 11:26:29 -07:00
Makefile vfio/mdev: Remove vfio_mdev.c 2022-04-21 07:36:56 -04:00
mdev_core.c vfio/mdev: Move the compat_class initialization to module init 2023-06-27 12:05:26 -06:00
mdev_driver.c vfio: mdev: make mdev_bus_type const 2024-02-22 12:19:33 -07:00
mdev_private.h vfio: mdev: make mdev_bus_type const 2024-02-22 12:19:33 -07:00
mdev_sysfs.c vfio/mdev: Fix a null-ptr-deref bug for mdev_unregister_parent() 2023-09-22 12:48:04 -06:00