aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorSuravee Suthikulpanit <[email protected]>2022-02-10 09:47:45 -0600
committerJoerg Roedel <[email protected]>2022-02-14 12:52:40 +0100
commit6b0b2d9a6a308bcd9300c2d83000a82812c56cea (patch)
tree4e1317257b1a4579797bdae1ffd1f196d9e4b71a /net/lapb/lapb_in.c
parent5ce97f4ec5e0f8726a5dda1710727b1ee9badcac (diff)
iommu/amd: Fix I/O page table memory leak
The current logic updates the I/O page table mode for the domain before calling the logic to free memory used for the page table. This results in IOMMU page table memory leak, and can be observed when launching VM w/ pass-through devices. Fix by freeing the memory used for page table before updating the mode. Cc: Joerg Roedel <[email protected]> Reported-by: Daniel Jordan <[email protected]> Tested-by: Daniel Jordan <[email protected]> Signed-off-by: Suravee Suthikulpanit <[email protected]> Fixes: e42ba0633064 ("iommu/amd: Restructure code for freeing page table") Link: https://lore.kernel.org/all/[email protected]/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions