summaryrefslogtreecommitdiffstats
path: root/scripts/checkincludes.pl
diff options
context:
space:
mode:
authorRobert Richter <rrichter@marvell.com>2019-03-20 19:57:23 +0100
committerJoerg Roedel <jroedel@suse.de>2019-03-22 12:01:58 +0100
commit80ef4464d5e27408685e609d389663aad46644b9 (patch)
treeca955b70bf998d4b527e0e1f2de41c9ce50029a7 /scripts/checkincludes.pl
parentiommu/amd: fix sg->dma_address for sg->offset bigger than PAGE_SIZE (diff)
downloadlinux-80ef4464d5e27408685e609d389663aad46644b9.tar.xz
linux-80ef4464d5e27408685e609d389663aad46644b9.zip
iommu/iova: Fix tracking of recently failed iova address
If a 32 bit allocation request is too big to possibly succeed, it early exits with a failure and then should never update max32_alloc_ size. This patch fixes current code, now the size is only updated if the slow path failed while walking the tree. Without the fix the allocation may enter the slow path again even if there was a failure before of a request with the same or a smaller size. Cc: <stable@vger.kernel.org> # 4.20+ Fixes: bee60e94a1e2 ("iommu/iova: Optimise attempts to allocate iova from 32bit address range") Reviewed-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Robert Richter <rrichter@marvell.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts/checkincludes.pl')
0 files changed, 0 insertions, 0 deletions