[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241028-ftgmac-fixes-v1-0-b334a507be6c@codeconstruct.com.au>
Date: Mon, 28 Oct 2024 12:54:09 +0800
From: Jeremy Kerr <jk@...econstruct.com.au>
To: Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Joel Stanley <joel@....id.au>, Jacky Chou <jacky_chou@...eedtech.com>,
Jacob Keller <jacob.e.keller@...el.com>
Cc: netdev@...r.kernel.org
Subject: [PATCH net 0/2] net: ethernet: ftgmac100: fixes for ncsi/phy
handling on device remove
We have a couple of bugs in the ftgmac remove path when used with ncsi,
when handling the ncsi_dev device, and now the new fixed-phy device
introduced in e24a6c874601.
Jacky: you may want to incorporate a remove test when running with NCSI
configurations:
echo 1e660000.ethernet > /sys/class/net/eth0/device/driver/unbind
(and probably helpful on non-ncsi too, I guess!)
Signed-off-by: Jeremy Kerr <jk@...econstruct.com.au>
---
Jeremy Kerr (2):
net: ethernet: ftgmac100: prevent use after free on unregister when using NCSI
net: ethernet: ftgmac100: fix NULL phy usage on device remove
drivers/net/ethernet/faraday/ftgmac100.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
---
base-commit: e31a8219fbfcf9dc65ba1e1c10cade12b6754e00
change-id: 20241028-ftgmac-fixes-abffe9b49c36
Best regards,
--
Jeremy Kerr <jk@...econstruct.com.au>
Powered by blists - more mailing lists