diff options
| author | Michael J. Ruhl <[email protected]> | 2017-06-09 16:00:12 -0700 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2017-06-27 16:58:13 -0400 |
| commit | fe4e74eeb24286c730672e776ac4c2c3caa19137 (patch) | |
| tree | af11cf314cc512dd2c5c8250c01768f65b53ed1a /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 581d01aaaca1fbb9df83cf3337c77e85215dcc5b (diff) | |
IB/hfi1: Initialize TID lists to avoid crash on cleanup
The expected receive lists (tid_xxx_list) are not initialized until
late in the receive context initialization. If an error happens
before the initialization, a NULL pointer access will occur during
cleanup.
Initialized the lists sooner rather than later to avoid this Oops:
IP: unlock_exp_tids.isra.11+0x26/0xd0 [hfi1]
RIP: 0010:unlock_exp_tids.isra.11+0x26/0xd0 [hfi1]
Call Trace:
hfi1_user_exp_rcv_free+0x79/0xb0 [hfi1]
hfi1_file_close+0x87/0x360 [hfi1]
__fput+0xe7/0x210
____fput+0xe/0x10
Reviewed-by: Mike Marciniszyn <[email protected]>
Reviewed-by: Sebastian Sanchez <[email protected]>
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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions