]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJakub Kicinski <kuba@kernel.org>
Wed, 19 Jan 2022 16:14:18 +0000 (08:14 -0800)
commitee9b899d60778fb2f0b94f2702652a28412ef9e4
tree783e98169a5fc339f7f3ec409cf495c01a4cf0de
parentc5aa71d56ce9726cbecdfe59bed13be76ec77278
net/fsl: xgmac_mdio: Fix incorrect iounmap when removing module

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: 2e279d1950b4 ("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>
drivers/net/ethernet/freescale/xgmac_mdio.c