diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-04-09 19:37:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-12 23:15:21 +0300 |
commit | d0494135f94c7ab5a9cf7a9094fbb233275c7ba6 (patch) | |
tree | 065099f245c66dc8f0ae121796eff761c81ee7f1 /net/ipv6 | |
parent | e701a25840360706fe4cf5de0015913ca19c274b (diff) | |
download | linux-d0494135f94c7ab5a9cf7a9094fbb233275c7ba6.tar.xz |
net: hns3: Fix potential null pointer defererence of null ae_dev
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_dev on the call to ns3_is_phys_func.
Addresses-Coverity: ("Dereference before null check")
Fixes: 715c58e94f0d ("net: hns3: add suspend and resume pm_ops")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions