aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorParav Pandit <[email protected]>2019-07-23 06:57:33 +0000
committerJason Gunthorpe <[email protected]>2019-07-25 14:45:48 +0000
commitd191152f43a5869d7dbb50dd2a7a4b3b8b71f1f0 (patch)
treea6bb752f11e9478553515003b1f4478bb537ef6b /tools/perf/scripts/python/net_dropmonitor.py
parentIB/core: Fix querying total rdma stats (diff)
downloadkernel-d191152f43a5869d7dbb50dd2a7a4b3b8b71f1f0.tar.gz
kernel-d191152f43a5869d7dbb50dd2a7a4b3b8b71f1f0.zip
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/[email protected] Signed-off-by: Parav Pandit <[email protected]> Reviewed-by: Mark Zhang <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions