Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145558501
D55369.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
977 B
Referenced Files
None
Subscribers
None
D55369.diff
View Options
Index: sys/arm64/iommu/iommu.c
===================================================================
--- sys/arm64/iommu/iommu.c
+++ sys/arm64/iommu/iommu.c
@@ -212,7 +212,7 @@
return (error);
tag = ioctx->tag = malloc(sizeof(struct bus_dma_tag_iommu),
- M_IOMMU, M_WAITOK | M_ZERO);
+ M_DEVBUF, M_WAITOK | M_ZERO);
tag->owner = requester;
tag->ctx = ioctx;
tag->ctx->domain = iodom;
@@ -372,20 +372,18 @@
void
iommu_free_ctx_locked(struct iommu_unit *iommu, struct iommu_ctx *ioctx)
{
- struct bus_dma_tag_iommu *tag;
+ struct iommu_domain *domain;
int error;
IOMMU_ASSERT_LOCKED(iommu);
- tag = ioctx->tag;
+ domain = ioctx->domain;
IOMMU_CTX_FREE(iommu->dev, ioctx);
IOMMU_UNLOCK(iommu);
- free(tag, M_IOMMU);
-
/* Since we have a domain per each ctx, remove the domain too. */
- error = iommu_domain_free(ioctx->domain);
+ error = iommu_domain_free(domain);
if (error)
device_printf(iommu->dev, "Could not free a domain\n");
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 22, 11:26 AM (1 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28936607
Default Alt Text
D55369.diff (977 B)
Attached To
Mode
D55369: arm64 iommu: fixes
Attached
Detach File
Event Timeline
Log In to Comment