Commit 7feb0054 authored by Tobias Waldekranz's avatar Tobias Waldekranz Committed by Zheng Zengkai
Browse files

net/fsl: xgmac_mdio: Fix incorrect iounmap when removing module

stable inclusion
from stable-v5.10.94
commit d806eb5f4e231c7c470b7e9d13277d9e69c80a67
bugzilla: https://gitee.com/openeuler/kernel/issues/I531X9

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d806eb5f4e231c7c470b7e9d13277d9e69c80a67



--------------------------------

commit 3f7c239c 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: 9f35a734 ("net/fsl: introduce Freescale 10G MDIO driver")
Signed-off-by: default avatarTobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent e97c9cbe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment