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)
commit9df7b25ab71cee770826d1e7983eb8b6715543d6
tree4aaf6a8dd26d823ef587354704f40e76dd3f8211
parent2007722a606bf9f195217f7afd2fbee4bc202c42
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