]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Do not loop forever when trying to increase address space
authorJoerg Roedel <jroedel@suse.de>
Mon, 4 May 2020 12:54:10 +0000 (14:54 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 5 May 2020 12:38:38 +0000 (14:38 +0200)
commit5b8a9a047b6cad361405c7900c1e1cdd378c4589
treeafd742da1aaa04a89564517705f3dd106327c40c
parenteb791aa70b90c559eeb371d807c8813d569393f0
iommu/amd: Do not loop forever when trying to increase address space

When increase_address_space() fails to allocate memory, alloc_pte()
will call it again until it succeeds. Do not loop forever while trying
to increase the address space and just return an error instead.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Tested-by: Qian Cai <cai@lca.pw>
Link: https://lore.kernel.org/r/20200504125413.16798-3-joro@8bytes.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c