Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347912
b: refs/heads/master
c: de2b3ee
h: refs/heads/master
v: v3
  • Loading branch information
Jiang Liu authored and Alex Williamson committed Dec 7, 2012
1 parent 9f38da6 commit e9eed56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9df7b25ab71cee770826d1e7983eb8b6715543d6
refs/heads/master: de2b3eeafb555d7b623c9f34e399b39105ca527f
3 changes: 2 additions & 1 deletion trunk/drivers/vfio/vfio.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,9 @@ 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);

if (!dev->driver || vfio_whitelisted_driver(dev->driver))
if (!drv || vfio_whitelisted_driver(drv))
return 0;

device = vfio_group_get_device(group, dev);
Expand Down

0 comments on commit e9eed56

Please sign in to comment.