]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add check NULL address for page pool
authorHao Chen <chenhao288@hisilicon.com>
Fri, 26 Nov 2021 12:03:16 +0000 (20:03 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 19:36:29 +0000 (11:36 -0800)
commit6c978ce51a52afcde41945f70f163382bd3cced7
tree9366aaeb6fe10e6bfa8897e6c5b80c1a27799503
parentf815dfbe3e0f6fbdeaa0a0637a5c617504d919b3
net: hns3: add check NULL address for page pool

When page pool is not enabled, its address value is still NULL and page
pool should not be accessed, so add a check for it.

Fixes: f9b81c4439c4 ("net: hns3: debugfs add support dumping page pool info")
Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c