diff options
author | Parav Pandit <parav@mellanox.com> | 2019-07-23 09:57:33 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-07-25 11:45:48 -0300 |
commit | d191152f43a5869d7dbb50dd2a7a4b3b8b71f1f0 (patch) | |
tree | a6bb752f11e9478553515003b1f4478bb537ef6b /tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py | |
parent | a379d1ce32f1c97b19d68cffbd195e025dbb9d43 (diff) |
IB/counters: Always initialize the port counter object
Port counter objects should be initialized even if alloc_stats is
unsupported, otherwise QP bind operations in user space can trigger a NULL
pointer deference if they try to bind QP on RDMA device which doesn't
support counters.
Fixes: f34a55e497e8 ("RDMA/core: Get sum value of all counters when perform a sysfs stat read")
Link: https://lore.kernel.org/r/20190723065733.4899-11-leon@kernel.org
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Mark Zhang <markz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py')
0 files changed, 0 insertions, 0 deletions