net/fsl: xgmac_mdio: Fix incorrect iounmap when removing module
authorTobias Waldekranz <tobias@waldekranz.com>
Tue, 18 Jan 2022 21:50:53 +0000 (22:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:54:31 +0000 (10:54 +0100)
commitd806eb5f4e231c7c470b7e9d13277d9e69c80a67
tree99dc6455d214680f0dcbcbe5db8cb0e8322b7518
parent38c798384b903e0c38f7978c1fbf942e36213b8d
net/fsl: xgmac_mdio: Fix incorrect iounmap when removing module

commit 3f7c239c7844d2044ed399399d97a5f1c6008e1b upstream.

As reported by sparse: In the remove path, the driver would attempt to
unmap its own priv pointer - instead of the io memory that it mapped
in probe.

Fixes: 9f35a7342cff ("net/fsl: introduce Freescale 10G MDIO driver")
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/xgmac_mdio.c