Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111578954
D23391.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
692 B
Referenced Files
None
Subscribers
None
D23391.id.diff
View Options
Index: head/sys/x86/iommu/intel_gas.c
===================================================================
--- head/sys/x86/iommu/intel_gas.c
+++ head/sys/x86/iommu/intel_gas.c
@@ -370,6 +370,8 @@
}
if (entry->free_down < a->size + a->offset + DMAR_PAGE_SIZE)
return (ENOMEM);
+ if (entry->first >= a->common->lowaddr)
+ return (ENOMEM);
child = RB_LEFT(entry, rb_entry);
if (child != NULL && 0 == dmar_gas_lowermatch(a, child))
return (0);
@@ -390,6 +392,8 @@
{
struct dmar_map_entry *child;
+ if (entry->free_down < a->size + a->offset + DMAR_PAGE_SIZE)
+ return (ENOMEM);
if (entry->last < a->common->highaddr)
return (ENOMEM);
child = RB_LEFT(entry, rb_entry);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 6, 12:59 PM (53 m, 33 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17014391
Default Alt Text
D23391.id.diff (692 B)
Attached To
Mode
D23391: shortcuts in dmar_gas matching
Attached
Detach File
Event Timeline
Log In to Comment