Messages in this thread | | | Date | Fri, 18 Aug 2023 14:12:29 +0200 | From | Simon Horman <> | Subject | Re: [PATCH net] net: ethernet: mtk_eth_soc: fix NULL pointer on hw reset |
| |
On Thu, Aug 17, 2023 at 01:01:11PM +0100, Daniel Golle wrote: > When a hardware reset is triggered on devices not initializing WED the > calls to mtk_wed_fe_reset and mtk_wed_fe_reset_complete dereference a > pointer on uninitialized stack memory. > Initialize the hw_list will 0s and break out of both functions in case > a hw_list entry is 0. > > Fixes: 08a764a7c51b ("net: ethernet: mtk_wed: add reset/reset_complete callbacks") > Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Simon Horman <horms@kernel.org>
| |