]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/vfio/vfio.c
locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_...
[mirror_ubuntu-jammy-kernel.git] / drivers / vfio / vfio.c
index f5a86f651f38e12874069281735169a1be26bede..2bc3705a99bd2f1a670e96c9f1175795b961c922 100644 (file)
@@ -665,7 +665,7 @@ static int vfio_dev_viable(struct device *dev, void *data)
 {
        struct vfio_group *group = data;
        struct vfio_device *device;
-       struct device_driver *drv = ACCESS_ONCE(dev->driver);
+       struct device_driver *drv = READ_ONCE(dev->driver);
        struct vfio_unbound_dev *unbound;
        int ret = -EINVAL;