We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79ca5f7 commit cabb7f8Copy full SHA for cabb7f8
drivers/xen/swiotlb-xen.c
@@ -207,7 +207,7 @@ int __ref xen_swiotlb_init(void)
207
swiotlb_set_max_segment(PAGE_SIZE);
208
return 0;
209
error:
210
- if (repeat--) {
+ if (nslabs > 1024 && repeat--) {
211
/* Min is 2MB */
212
nslabs = max(1024UL, ALIGN(nslabs >> 1, IO_TLB_SEGSIZE));
213
bytes = nslabs << IO_TLB_SHIFT;
@@ -243,7 +243,7 @@ void __init xen_swiotlb_init_early(void)
243
rc = xen_swiotlb_fixup(start, nslabs);
244
if (rc) {
245
memblock_free(__pa(start), PAGE_ALIGN(bytes));
246
247
248
249
0 commit comments