diff options
| author | Ira Weiny <[email protected]> | 2016-07-27 21:06:15 -0400 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2016-08-02 22:46:21 -0400 |
| commit | 042b0159aa6c230093c4318b689ef9a5b89f29e2 (patch) | |
| tree | ac2b96023d6ee2dd7062dc1a971541d34809f8d7 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 527dbf12e08175e510ab445528c1a2964c1129ca (diff) | |
IB/hfi1: Handle kzalloc failure in init_pervl_scs
Checking the return value of the memory allocation call in
init_pervl_scs() was missed. Recently the kmalloc() was changed to
kzalloc() which identified the problem.
While fixing this issue 2 other bugs were noticed. First, the array
being allocated is accessed in the nomem path which can be reached before
it is allocated. Second, kernel_send_context was not released on error.
Fix both of these by creating a more common memory unwind label structure.
Fixes: 35f6befc8441 ("staging/rdma/hfi1: Add qp to send context mapping for PIO")
Reported-by: Leon Romanovsky <[email protected]>
Reviewed-by: Mike Marciniszyn <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Ira Weiny <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions