Skip to content

Commit ce6a80d

Browse files
jbeulichjgross1
authored andcommitted
swiotlb-xen: avoid double free
Of the two paths leading to the "error" label in xen_swiotlb_init() one didn't allocate anything, while the other did already free what was allocated. Fixes: b827760 ("xen/swiotlb: Use the swiotlb_late_init_with_tbl to init Xen-SWIOTLB late when PV PCI is used") Signed-off-by: Jan Beulich <jbeulich@suse.com> Cc: stable@vger.kernel.org Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/ce9c2adb-8a52-6293-982a-0d6ece943ac6@suse.com Signed-off-by: Juergen Gross <jgross@suse.com>
1 parent 45da234 commit ce6a80d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/xen/swiotlb-xen.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ int __ref xen_swiotlb_init(void)
216216
goto retry;
217217
}
218218
pr_err("%s (rc:%d)\n", xen_swiotlb_error(m_ret), rc);
219-
free_pages((unsigned long)start, order);
220219
return rc;
221220
}
222221

0 commit comments

Comments
 (0)