Commit 9906aa5b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Konrad Rzeszutek Wilk
Browse files

powerpc/svm: stop using io_tlb_start



Use the local variable that is passed to swiotlb_init_with_tbl for
freeing the memory in the failure case to isolate the code a little
better from swiotlb internals.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent 1e28eed1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -55,8 +55,8 @@ void __init svm_swiotlb_init(void)
	if (vstart && !swiotlb_init_with_tbl(vstart, io_tlb_nslabs, false))
		return;

	if (io_tlb_start)
		memblock_free_early(io_tlb_start,

	memblock_free_early(__pa(vstart),
			    PAGE_ALIGN(io_tlb_nslabs << IO_TLB_SHIFT));
	panic("SVM: Cannot allocate SWIOTLB buffer");
}