summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorYonglong Liu <liuyonglong@huawei.com>2019-02-20 10:32:41 +0800
committerDavid S. Miller <davem@davemloft.net>2019-02-21 16:29:04 -0800
commit676131f7c53ecdd79e29fc8cfcdefe6f9f2485e8 (patch)
tree6d1a3e46c8a0f39359e55cfbc1a6d2ec345cfa10 /include/linux
parentbdd59d661153a59af79112676565276ae2a1f457 (diff)
downloadcachepc-linux-676131f7c53ecdd79e29fc8cfcdefe6f9f2485e8.tar.gz
cachepc-linux-676131f7c53ecdd79e29fc8cfcdefe6f9f2485e8.zip
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions