net: hns3: add pointer checking at the beginning of the exported functions.
authorYonglong Liu <liuyonglong@huawei.com>
Wed, 20 Feb 2019 02:32:40 +0000 (10:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2019 00:29:04 +0000 (16:29 -0800)
commitbdd59d661153a59af79112676565276ae2a1f457
tree39a839b9aa538b827b473dcb4652af9e39f96958
parent2fb44dd0e803eea6c8e6d8a94e6f028929bd8e8e
net: hns3: add pointer checking at the beginning of the exported functions.

These functions are exported, add pointer checking at the beginning
can make them more safe.

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>
drivers/net/ethernet/hisilicon/hns3/hnae3.c