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
Raw File
Kconfig
config NET_VENDOR_MEDIATEK_STAGING
	bool "MediaTek ethernet driver - staging version"
	depends on RALINK
	---help---
	  If you have an MT7621 Mediatek SoC with ethernet, say Y.

if NET_VENDOR_MEDIATEK_STAGING
choice
	prompt "MAC type"

config NET_MEDIATEK_MT7621
	bool "MT7621"
	depends on MIPS && SOC_MT7621

endchoice

config NET_MEDIATEK_SOC_STAGING
	tristate "MediaTek SoC Gigabit Ethernet support"
	depends on NET_VENDOR_MEDIATEK_STAGING
	select PHYLIB
	---help---
	  This driver supports the gigabit ethernet MACs in the
	  MediaTek SoC family.

config NET_MEDIATEK_MDIO
	def_bool NET_MEDIATEK_SOC_STAGING
	depends on NET_MEDIATEK_MT7621
	select PHYLIB

config NET_MEDIATEK_MDIO_MT7620
	def_bool NET_MEDIATEK_SOC_STAGING
	depends on NET_MEDIATEK_MT7621
	select NET_MEDIATEK_MDIO

config NET_MEDIATEK_GSW_MT7621
	def_tristate NET_MEDIATEK_SOC_STAGING
	depends on NET_MEDIATEK_MT7621

endif #NET_VENDOR_MEDIATEK_STAGING
back to top