Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VFIO: use ACCESS_ONCE() to guard access to dev->driver
Comments from dev_driver_string(), /* dev->driver can change to NULL underneath us because of unbinding, * so be careful about accessing it. */ So use ACCESS_ONCE() to guard access to dev->driver field. Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
- Loading branch information