mbox series

[net,0/2] net: ethernet: ftgmac100: fixes for ncsi/phy handling on device remove

Message ID 20241028-ftgmac-fixes-v1-0-b334a507be6c@codeconstruct.com.au (mailing list archive)
Headers show
Series net: ethernet: ftgmac100: fixes for ncsi/phy handling on device remove | expand

Message

Jeremy Kerr Oct. 28, 2024, 4:54 a.m. UTC
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@codeconstruct.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,