linux/drivers/infiniband/hw/hfi1
Dan Carpenter 57194fa763 IB/hfi1: Prevent a NULL dereference
In the original code, we set "fd->uctxt" to NULL and then dereference it
which will cause an Oops.

Fixes: f2a3bc00a0 ("IB/hfi1: Protect context array set/clear with spinlock")
Cc: <stable@vger.kernel.org> # 4.14.x
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2018-01-10 16:48:09 -05:00
..
affinity.c
affinity.h
aspm.h IB/hfi1: Convert timers to use timer_setup() 2017-10-18 11:48:19 -04:00
chip.c IB/hfi1: Send 'reboot' as planned down remote reason 2017-11-13 15:53:57 -05:00
chip.h IB/hfi1: Reduce 8051 command timeout 2017-11-13 15:53:56 -05:00
chip_registers.h
common.h IB/hfi1: Eliminate allocation while atomic 2017-10-18 10:12:59 -04:00
debugfs.c Driver core patches for 4.15-rc1 2017-11-16 08:55:30 -08:00
debugfs.h
device.c
device.h
driver.c IB/hfi1: Do not allocate PIO send contexts for VNIC 2017-11-13 15:53:57 -05:00
efivar.c
efivar.h
eprom.c IB/hfi1: Check eeprom config partition validity 2017-09-27 11:10:36 -04:00
eprom.h
exp_rcv.c
exp_rcv.h
file_ops.c IB/hfi1: Prevent a NULL dereference 2018-01-10 16:48:09 -05:00
firmware.c IB/hfi1: Add MODULE_FIRMWARE statements 2017-10-18 10:24:02 -04:00
hfi.h IB/hfi: Only read capability registers if the capability exists 2017-12-22 10:42:08 -07:00
init.c IB/hfi1: Do not allocate PIO send contexts for VNIC 2017-11-13 15:53:57 -05:00
intr.c IB/hfi1: Allow MgmtAllowed on B2B setups 2017-11-13 15:53:56 -05:00
iowait.h
Kconfig IB/hfi1: Remove HFI1_VERBS_31BIT_PSN option 2017-08-22 14:22:38 -04:00
mad.c IB/hfi1: Handle initial value of 0 for CCTI setting 2017-11-13 15:53:57 -05:00
mad.h IB/hfi1: Fix a wrapping test to insure the correct timeout 2017-11-13 15:53:57 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mmu_rb.c IB/hfi1: Remove wrapper function in mmu_rb 2017-11-13 15:53:56 -05:00
mmu_rb.h
opa_compat.h
pcie.c IB/hfi: Only read capability registers if the capability exists 2017-12-22 10:42:08 -07:00
pio.c Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
pio.h IB/hfi1: Do not allocate PIO send contexts for VNIC 2017-11-13 15:53:57 -05:00
pio_copy.c
platform.c IB/hfi1: Only reset QSFP after link up and turn off AOC TX 2017-09-27 11:10:36 -04:00
platform.h
qp.c IB/hfi1: Convert qp_stats debugfs interface to use new iterator API 2017-08-28 19:12:30 -04:00
qp.h IB/hfi1: Convert qp_stats debugfs interface to use new iterator API 2017-08-28 19:12:30 -04:00
qsfp.c
qsfp.h
rc.c IB/hfi1: Initialize bth1 in 16B rc ack builder 2017-11-30 16:01:28 -07:00
ruc.c Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
sdma.c Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
sdma.h locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE() 2017-10-25 11:01:08 +02:00
sdma_txreq.h
sysfs.c IB/hfi1: Fix incorrect available receive user context count 2017-10-04 15:39:44 -04:00
trace.c Merge branch 'hfi1' into k.o/for-next 2017-10-18 10:15:14 -04:00
trace.h IB/hfi1: Extend input hdr tracing for packet type 2017-09-27 11:34:13 -04:00
trace_ctxts.h
trace_dbg.h
trace_ibhdrs.h IB/hfi1: Fix output trace issues from 16B change 2017-10-04 15:39:44 -04:00
trace_misc.h
trace_mmu.h IB/hif1: Remove static tracing from SDMA hot path 2017-08-28 19:12:27 -04:00
trace_rc.h
trace_rx.h IB/hfi1: Extend input hdr tracing for packet type 2017-09-27 11:34:13 -04:00
trace_tx.h IB/hif1: Remove static tracing from SDMA hot path 2017-08-28 19:12:27 -04:00
uc.c Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
ud.c Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
user_exp_rcv.c IB/hfi1: Refactor hfi_user_exp_rcv_invalid() IOCTLs 2017-09-29 11:08:06 -04:00
user_exp_rcv.h IB/hfi1: Move structure definitions from user_exp_rcv.c to user_exp_rcv.h 2017-08-28 19:12:22 -04:00
user_pages.c
user_sdma.c Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
user_sdma.h IB/hfi1: Convert the macro AHG_HEADER_SET into an inline function 2017-09-27 11:34:13 -04:00
verbs.c IB/hfi1: Add tx_opcode_stats like the opcode_stats 2017-10-30 14:51:36 -04:00
verbs.h IB/hfi1: Remove HFI1_VERBS_31BIT_PSN option 2017-08-22 14:22:38 -04:00
verbs_txreq.c IB/hfi1: Improve local kmem_cache_alloc performance 2017-08-28 19:12:18 -04:00
verbs_txreq.h IB/hfi1: Set hdr_type when tx req is allocated 2017-10-18 10:13:00 -04:00
vnic.h
vnic_main.c IB/hfi1: Do not allocate PIO send contexts for VNIC 2017-11-13 15:53:57 -05:00
vnic_sdma.c IB/hfi1: Improve local kmem_cache_alloc performance 2017-08-28 19:12:18 -04:00