summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHao Chen <chenhao288@hisilicon.com>2022-03-26 12:51:04 +0300
committerDavid S. Miller <davem@davemloft.net>2022-03-26 19:16:49 +0300
commit4d07c5936c2508ddd1cfd49b0a91d94cb4d1f0e8 (patch)
treeec72f2be77641f93370cd8734435ca8758a693c9 /Makefile
parentf5cd60169f981ca737c9e49c446506dfafc90a35 (diff)
downloadlinux-4d07c5936c2508ddd1cfd49b0a91d94cb4d1f0e8.tar.xz
net: hns3: add NULL pointer check for hns3_set/get_ringparam()
When pci devices init failed and haven't reinit, priv->ring is NULL and hns3_set/get_ringparam() will access priv->ring. it causes call trace. So, add NULL pointer check for hns3_set/get_ringparam() to avoid this situation. Fixes: 5668abda0931 ("net: hns3: add support for set_ringparam") Signed-off-by: Hao Chen <chenhao288@hisilicon.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions