Skip to content
Commit ea5ef136 authored by Yuan Can's avatar Yuan Can Committed by Leon Romanovsky
Browse files

RDMA/nldev: Add checks for nla_nest_start() in fill_stat_counter_qps()



As the nla_nest_start() may fail with NULL returned, the return value needs
to be checked.

Fixes: c4ffee7c ("RDMA/netlink: Implement counter dumpit calback")
Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Link: https://lore.kernel.org/r/20221126043410.85632-1-yuancan@huawei.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 09f530f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment