linux-hardened/drivers/infiniband
Mustafa Ismail 5a7189d529 i40iw: Fix memory leak in error path of create QP
If i40iw_allocate_dma_mem fails when creating a QP, the
memory allocated for the QP structure using kzalloc is not
freed because iwqp->allocated_buffer is used to free the
memory and it is not setup until later. Fix this by setting
iwqp->allocated_buffer before allocating the dma memory.

Fixes: d374984179 ("i40iw: add files for iwarp interface")
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2018-05-09 10:39:50 -04:00
..
core RDMA/cma: Do not query GID during QP state transition to RTR 2018-05-03 15:45:18 -04:00
hw i40iw: Fix memory leak in error path of create QP 2018-05-09 10:39:50 -04:00
sw IB/rxe: avoid double kfree_skb 2018-04-27 14:20:47 -04:00
ulp IB: remove redundant INFINIBAND kconfig dependencies 2018-05-09 08:51:03 -04:00
Kconfig IB: make INFINIBAND_ADDR_TRANS configurable 2018-04-27 11:15:44 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00