diff options
author | Michael J. Ruhl <[email protected]> | 2018-05-02 06:42:29 -0700 |
---|---|---|
committer | Doug Ledford <[email protected]> | 2018-05-09 15:53:29 -0400 |
commit | 48e0a6559dd8e6aa87841270868423b23076220e (patch) | |
tree | 39da2e0cd3d4284a22fb1895a11ba8f967040d92 /tools/perf/scripts/python/intel-pt-events.py | |
parent | 254361c1890e67486cd957e9072e518b1c464e27 (diff) |
IB/hfi1: Return actual error value from program_rcvarray()
A failure of program_rcvarray() is treated inconsistently by the
calling function. In one case the error is returned, in a second
case, the error is overwritten with EFAULT. In both cases the
code path is doing the same thing, allocating memory for groups,
so it should be consistent.
Make the error path consistent and return the error generated by
program_rcvarray().
Reviewed-by: Harish Chegondi <[email protected]>
Fixes: 7e7a436ecb6e ("staging/hfi1: Add TID entry program function body")
Signed-off-by: Michael J. Ruhl <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions