]> git.baikalelectronics.ru Git - kernel.git/commit
VFIO: unregister IOMMU notifier on error recovery path
authorJiang Liu <liuj97@gmail.com>
Fri, 7 Dec 2012 20:43:50 +0000 (13:43 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 7 Dec 2012 20:43:50 +0000 (13:43 -0700)
commit84af07a233163d46541ea181632be1f15b4ec6ac
tree4aaf6a8dd26d823ef587354704f40e76dd3f8211
parent9646f6b76a0468ac6476cb8db863efbb58ea0ca7
VFIO: unregister IOMMU notifier on error recovery path

On error recovery path in function vfio_create_group(), it should
unregister the IOMMU notifier for the new VFIO group. Otherwise it may
cause invalid memory access later when handling bus notifications.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c