projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vfio/spapr_tce: Skip unsetting already unset table
[linux-2.6-microblaze.git]
/
drivers
/
vfio
/
vfio_iommu_spapr_tce.c
diff --git
a/drivers/vfio/vfio_iommu_spapr_tce.c
b/drivers/vfio/vfio_iommu_spapr_tce.c
index
c424913
..
8dbb270
100644
(file)
--- a/
drivers/vfio/vfio_iommu_spapr_tce.c
+++ b/
drivers/vfio/vfio_iommu_spapr_tce.c
@@
-1235,7
+1235,8
@@
static void tce_iommu_release_ownership_ddw(struct tce_container *container,
}
for (i = 0; i < IOMMU_TABLE_GROUP_MAX_TABLES; ++i)
- table_group->ops->unset_window(table_group, i);
+ if (container->tables[i])
+ table_group->ops->unset_window(table_group, i);
table_group->ops->release_ownership(table_group);
}