summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/hfi1/file_ops.c
diff options
context:
space:
mode:
authorMichael J. Ruhl <michael.j.ruhl@intel.com>2017-06-09 16:00:12 -0700
committerDoug Ledford <dledford@redhat.com>2017-06-27 16:58:13 -0400
commitfe4e74eeb24286c730672e776ac4c2c3caa19137 (patch)
treeaf11cf314cc512dd2c5c8250c01768f65b53ed1a /drivers/infiniband/hw/hfi1/file_ops.c
parent581d01aaaca1fbb9df83cf3337c77e85215dcc5b (diff)
downloadlinux-fe4e74eeb24286c730672e776ac4c2c3caa19137.tar.gz
linux-fe4e74eeb24286c730672e776ac4c2c3caa19137.tar.bz2
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 'drivers/infiniband/hw/hfi1/file_ops.c')
0 files changed, 0 insertions, 0 deletions