Re: [PATCH v2] net: eth-uclass: revalidate priv after stop() in eth_halt()

2022-12-17 Thread Marek Vasut
On 12/12/22 16:29, Niel Fourie wrote: In eth_halt(), reread and revalidate priv after calling stop(), as it may have been freed, leaving a dangling pointer. In the ethernet gadget implementation, the gadget device gets probed during start() and removed during stop(), which includes freeing `ucla

Re: [PATCH v2] net: eth-uclass: revalidate priv after stop() in eth_halt()

2022-12-12 Thread Marek Vasut
On 12/12/22 16:29, Niel Fourie wrote: In eth_halt(), reread and revalidate priv after calling stop(), as it may have been freed, leaving a dangling pointer. In the ethernet gadget implementation, the gadget device gets probed during start() and removed during stop(), which includes freeing `ucla

[PATCH v2] net: eth-uclass: revalidate priv after stop() in eth_halt()

2022-12-12 Thread Niel Fourie
In eth_halt(), reread and revalidate priv after calling stop(), as it may have been freed, leaving a dangling pointer. In the ethernet gadget implementation, the gadget device gets probed during start() and removed during stop(), which includes freeing `uclass_priv_` to which `priv` is pointing. W