Commit a303e80b authored by Will Deacon's avatar Will Deacon Committed by Will Deacon
Browse files

FROMLIST: swiotlb: Free tbl memory in swiotlb_exit()



Although swiotlb_exit() frees the 'slots' metadata array referenced by
'io_tlb_default_mem', it leaves the underlying buffer pages allocated
despite no longer being usable.

Extend swiotlb_exit() to free the buffer pages as well as the slots
array.

Cc: Claire Chang <tientzu@chromium.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
Tested-by: default avatarClaire Chang <tientzu@chromium.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210720133826.9075-5-will@kernel.org


Signed-off-by: default avatarWill Deacon <willdeacon@google.com>
Bug: 190591509
Change-Id: I3ee643e381ad9d913c36dec101a72e6953fff335
parent c31eaaaa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment