commit | 676131f7c53ecdd79e29fc8cfcdefe6f9f2485e8 | [log] [tgz] |
---|---|---|
author | Yonglong Liu <liuyonglong@huawei.com> | Wed Feb 20 10:32:41 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Feb 21 16:29:04 2019 -0800 |
tree | 6d1a3e46c8a0f39359e55cfbc1a6d2ec345cfa10 | |
parent | bdd59d661153a59af79112676565276ae2a1f457 [diff] |
net: hns3: Check variable is valid before assigning it to another In hnae3_register_ae_dev(), ae_algo->ops is assigned to ae_dev->ops before check that ae_algo->ops is valid. And in hnae3_register_ae_algo(), missing check for ae_algo->ops. This patch fixes them. Signed-off-by: Yonglong Liu <liuyonglong@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>