diff options
author | Michael J. Ruhl <michael.j.ruhl@intel.com> | 2017-06-10 01:00:12 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-06-27 22:58:13 +0200 |
commit | fe4e74eeb24286c730672e776ac4c2c3caa19137 (patch) | |
tree | af11cf314cc512dd2c5c8250c01768f65b53ed1a /kernel | |
parent | IB/qib: Replace deprecated pci functions with new API (diff) | |
download | linux-fe4e74eeb24286c730672e776ac4c2c3caa19137.tar.xz linux-fe4e74eeb24286c730672e776ac4c2c3caa19137.zip |
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 <mike.marciniszyn@intel.com>
Reviewed-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions