Revision 80ef4464d5e27408685e609d389663aad46644b9 authored by Robert Richter on 20 March 2019, 18:57:23 UTC, committed by Joerg Roedel on 22 March 2019, 11:01:58 UTC
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>
1 parent 4e50ce0
History
File Mode Size
Kconfig -rw-r--r-- 1.3 KB
Makefile -rw-r--r-- 436 bytes
pinctrl-stm32.c -rw-r--r-- 31.0 KB
pinctrl-stm32.h -rw-r--r-- 1.2 KB
pinctrl-stm32f429.c -rw-r--r-- 42.0 KB
pinctrl-stm32f469.c -rw-r--r-- 42.3 KB
pinctrl-stm32f746.c -rw-r--r-- 45.4 KB
pinctrl-stm32f769.c -rw-r--r-- 50.2 KB
pinctrl-stm32h743.c -rw-r--r-- 55.8 KB
pinctrl-stm32mp157.c -rw-r--r-- 64.2 KB

back to top