summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/qib/qib_rc.c
diff options
context:
space:
mode:
authorSebastian Sanchez2017-03-21 01:24:58 +0100
committerDoug Ledford2017-04-05 20:45:09 +0200
commit5a52a7acf7e2a812d2852342992cee3dc22ad25d (patch)
tree8f7e9569df40f4b1b8ee7cae88ca9df8571ecaa6 /drivers/infiniband/hw/qib/qib_rc.c
parentIB/hfi1: Cache registers during state change (diff)
downloadkernel-qcow2-linux-5a52a7acf7e2a812d2852342992cee3dc22ad25d.tar.gz
kernel-qcow2-linux-5a52a7acf7e2a812d2852342992cee3dc22ad25d.tar.xz
kernel-qcow2-linux-5a52a7acf7e2a812d2852342992cee3dc22ad25d.zip
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: 0cb2aa690c7e ("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>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_rc.c')
0 files changed, 0 insertions, 0 deletions