Skip to content
Snippets Groups Projects
Commit de2b3eea authored by Jiang Liu's avatar Jiang Liu Committed by Alex Williamson
Browse files

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: default avatarJiang Liu <jiang.liu@huawei.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 9df7b25a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment