Re: [PATCH][next] net: hns3: Fix potential null pointer defererence of null ae_dev

2021-04-12 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Fri, 9 Apr 2021 17:37:26 +0100 you wrote: > From: Colin Ian King > > The reset_prepare and reset_done calls have a null pointer check > on ae_dev however ae_dev is being dereferenced via the call to > ns3_is_phys_func

[PATCH][next] net: hns3: Fix potential null pointer defererence of null ae_dev

2021-04-09 Thread Colin King
From: Colin Ian King The reset_prepare and reset_done calls have a null pointer check on ae_dev however ae_dev is being dereferenced via the call to ns3_is_phys_func with the ae->pdev argument. Fix this by performing a null pointer check on ae_dev and hence short-circuiting the dereference to ae_