linux/drivers/infiniband
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
..
core IB/core: Change completion channel to use the reworked objects schema 2017-04-05 13:28:04 -04:00
hw IB/hfi1: NULL pointer dereference when freeing rhashtable 2017-04-05 14:45:09 -04:00
sw scripts/spelling.txt: add "therfore" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
ulp IB/IPoIB: ibX: failed to create mcg debug file 2017-04-05 13:47:24 -04:00
Kconfig RDMA/bnxt_re: Add bnxt_re driver build support 2017-02-14 09:51:28 -05:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00