OpenCloudOS-Kernel/drivers/infiniband/hw
Sebastian Sanchez 5a52a7acf7 IB/hfi1: NULL pointer dereference when freeing rhashtable
A NULL pointer dereference occurs when the driver
is unloaded, and the SDMA rhashtable is freed if
the rhashtable_init() function has not been called.
Prevent this by changing sdma_rht to be a pointer
to a dynamically allocated hash table. The NULL-ness
of the pointer serves as an indication that the hash
table was initialized and that it needs to be
destroyed.

Fixes: 0cb2aa690c ("IB/hfi1: Add sysfs interface for affinity setup")
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-04-05 14:45:09 -04:00
..
bnxt_re This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
cxgb3 sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h> 2017-03-02 08:42:37 +01:00
cxgb4 sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h> 2017-03-02 08:42:37 +01:00
hfi1 IB/hfi1: NULL pointer dereference when freeing rhashtable 2017-04-05 14:45:09 -04:00
hns IB/hns: Explicitly include linux/of.h 2017-04-05 13:45:53 -04:00
i40iw This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
mlx4 sched/headers: Prepare to move the get_task_struct()/put_task_struct() and related APIs from <linux/sched.h> to <linux/sched/task.h> 2017-03-02 08:42:40 +01:00
mlx5 sched/headers: Prepare to move the get_task_struct()/put_task_struct() and related APIs from <linux/sched.h> to <linux/sched/task.h> 2017-03-02 08:42:40 +01:00
mthca This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
nes This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
ocrdma This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
qedr This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
qib sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00
usnic sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00
vmw_pvrdma This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
Makefile RDMA/bnxt_re: Add bnxt_re driver build support 2017-02-14 09:51:28 -05:00