diff options
| author | Michael J. Ruhl <[email protected]> | 2018-06-20 16:29:08 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2018-06-26 20:35:55 +0000 |
| commit | b697d7d8c741f27b728a878fc55852b06d0f6f5e (patch) | |
| tree | 5d845e268d008f9a830180ad5b6ba244c149258d /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | RDMA/uverbs: Fix slab-out-of-bounds in ib_uverbs_ex_create_flow (diff) | |
| download | kernel-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
