aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorLeon Romanovsky <[email protected]>2018-06-24 11:23:47 +0300
committerJason Gunthorpe <[email protected]>2018-06-26 14:37:26 -0600
commita5cc9831af05e658543593abaee45a29d061bac4 (patch)
treeeee06b73f3d4ef70e55d0df13ed6f95010349a9e /tools/perf/scripts/python/call-graph-from-sql.py
parent1ccddc42da03876f60fe2d0a1b124c27ed5ff201 (diff)
RDMA/uverbs: Don't overwrite NULL pointer with ZERO_SIZE_PTR
Number of specs is provided by user and in valid case can be equal to zero. Such argument causes to call to kcalloc() with zero-length request and in return the ZERO_SIZE_PTR is assigned. This pointer is different from NULL and makes various if (..) checks to success. Fixes: b6ba4a9aa59f ("IB/uverbs: Add support for flow counters") Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions