aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorMichael J. Ruhl <[email protected]>2018-06-20 16:29:08 +0000
committerJason Gunthorpe <[email protected]>2018-06-26 20:35:55 +0000
commitb697d7d8c741f27b728a878fc55852b06d0f6f5e (patch)
tree5d845e268d008f9a830180ad5b6ba244c149258d /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parentRDMA/uverbs: Fix slab-out-of-bounds in ib_uverbs_ex_create_flow (diff)
downloadkernel-b697d7d8c741f27b728a878fc55852b06d0f6f5e.tar.gz
kernel-b697d7d8c741f27b728a878fc55852b06d0f6f5e.zip
IB/hfi1: Fix incorrect mixing of ERR_PTR and NULL return values
The __get_txreq() function can return a pointer, ERR_PTR(-EBUSY), or NULL. All of the relevant call sites look for IS_ERR, so the NULL return would lead to a NULL pointer exception. Do not use the ERR_PTR mechanism for this function. Update all call sites to handle the return value correctly. Clean up error paths to reflect return value. Fixes: 45842abbb292 ("staging/rdma/hfi1: move txreq header code") Cc: <[email protected]> # 4.9.x+ Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Mike Marciniszyn <[email protected]> Reviewed-by: Kamenee Arumugam <[email protected]> Signed-off-by: Michael J. Ruhl <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions