i40iw: Avoid memory leak of CQP request objects
authorShiraz Saleem <shiraz.saleem@intel.com>
Fri, 23 Jun 2017 21:04:02 +0000 (16:04 -0500)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Jul 2017 15:20:49 +0000 (11:20 -0400)
commit44b99f88cdd5b47046c511aa64ae71ad2c9e5b1e
tree8ee34b27c00f573fcf0befe3aa5a9c4fea929635
parentc709d7f229a273c7c5664e9dfe5432b031842d0c
i40iw: Avoid memory leak of CQP request objects

Control Queue Pair (CQP) request objects, which have
not received a completion upon interface close, remain
in memory.

To fix this, identify and free all pending CQP request
objects during destroy CQP OP.

Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw.h
drivers/infiniband/hw/i40iw/i40iw_main.c
drivers/infiniband/hw/i40iw/i40iw_utils.c