diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2023-10-10 21:48:57 +0900 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-10-12 11:22:21 +0200 |
commit | 510b18cf23b9bd8a982ef7f1fb19f3968a2bf787 (patch) | |
tree | 38ae3d0f83dd5dff2c8d14ade1b57f3f0b7425d8 /mm/swap.c | |
parent | 50e492143374c17ad89c865a1a44837b3f5c8226 (diff) |
rswitch: Fix renesas_eth_sw_remove() implementation
Fix functions calling order and a condition in renesas_eth_sw_remove().
Otherwise, kernel NULL pointer dereference happens from phy_stop() if
a net device opens.
Fixes: 3590918b5d07 ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions