Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'vfio-v4.11-rc4' of git://github.com/awilliam/linux-vfio

Pull VFIO fix from Alex Williamson:
"Rework sanity check for mdev driver group notifier de-registration
(Alex Williamson)"

* tag 'vfio-v4.11-rc4' of git://github.com/awilliam/linux-vfio:
vfio: Rework group release notifier warning

+5 -3
+5 -3
drivers/vfio/vfio.c
··· 403 403 struct iommu_group *iommu_group = group->iommu_group; 404 404 405 405 WARN_ON(!list_empty(&group->device_list)); 406 + WARN_ON(group->notifier.head); 406 407 407 408 list_for_each_entry_safe(unbound, tmp, 408 409 &group->unbound_list, unbound_next) { ··· 1574 1573 return -EBUSY; 1575 1574 } 1576 1575 1576 + /* Warn if previous user didn't cleanup and re-init to drop them */ 1577 + if (WARN_ON(group->notifier.head)) 1578 + BLOCKING_INIT_NOTIFIER_HEAD(&group->notifier); 1579 + 1577 1580 filep->private_data = group; 1578 1581 1579 1582 return 0; ··· 1588 1583 struct vfio_group *group = filep->private_data; 1589 1584 1590 1585 filep->private_data = NULL; 1591 - 1592 - /* Any user didn't unregister? */ 1593 - WARN_ON(group->notifier.head); 1594 1586 1595 1587 vfio_group_try_dissolve_container(group); 1596 1588