diff options
| author | Yuan Can <yuancan@huawei.com> | 2022-11-26 04:34:10 +0000 | 
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2022-11-28 13:43:51 +0200 | 
| commit | ea5ef136e215fdef35f14010bc51fcd6686e6922 (patch) | |
| tree | 32c0e447aef347131a256e9420b6f425ed32c363 /lib/of-reconfig-notifier-error-inject.c | |
| parent | 09f530f0c6d6689eee5e690c6d98f495fcc3a0f9 (diff) | |
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: c4ffee7c9bdb ("RDMA/netlink: Implement counter dumpit calback")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Link: https://lore.kernel.org/r/20221126043410.85632-1-yuancan@huawei.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'lib/of-reconfig-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
