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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 604 bytes |
Makefile | -rw-r--r-- | 276 bytes |
berlin-bg2.c | -rw-r--r-- | 9.0 KB |
berlin-bg2cd.c | -rw-r--r-- | 6.7 KB |
berlin-bg2q.c | -rw-r--r-- | 15.9 KB |
berlin-bg4ct.c | -rw-r--r-- | 22.4 KB |
berlin.c | -rw-r--r-- | 8.2 KB |
berlin.h | -rw-r--r-- | 1.3 KB |
pinctrl-as370.c | -rw-r--r-- | 16.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...