linux/drivers/infiniband/hw/i40iw
Mustafa Ismail fd90d4d4c2 i40iw: Fix memory leak in CQP destroy when in reset
On a device close, the control QP (CQP) is destroyed by calling
cqp_destroy which destroys the CQP and frees its SD buffer memory.
However, if the reset flag is true, cqp_destroy is never called and
leads to a memory leak on SD buffer memory. Fix this by always calling
cqp_destroy, on device close, regardless of reset. The exception to this
when CQP create fails. In this case, the SD buffer memory is already
freed on an error check and there is no need to call cqp_destroy.

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>
2016-12-12 17:20:27 -05:00
..
Kconfig i40iw: Kconfig and Makefile for iwarp module 2016-03-16 13:50:54 -04:00
Makefile i40iw: Kconfig and Makefile for iwarp module 2016-03-16 13:50:54 -04:00
i40iw.h i40iw: Fix QP flush to not hang on empty queues or failure 2016-12-12 17:20:27 -05:00
i40iw_cm.c i40iw: Fix double free of QP 2016-12-12 17:20:26 -05:00
i40iw_cm.h i40iw: Set TOS field in IP header 2016-12-05 16:09:42 -05:00
i40iw_ctrl.c i40iw: Remove variable flush_code and check to set qp->sq_flush 2016-12-05 16:09:38 -05:00
i40iw_d.h i40iw: Add missing cleanup on device close 2016-12-05 16:09:40 -05:00
i40iw_hmc.c i40iw: add hmc resource files 2016-02-29 17:10:53 -05:00
i40iw_hmc.h i40iw: add hmc resource files 2016-02-29 17:10:53 -05:00
i40iw_hw.c i40iw: Fix QP flush to not hang on empty queues or failure 2016-12-12 17:20:27 -05:00
i40iw_main.c i40iw: Fix memory leak in CQP destroy when in reset 2016-12-12 17:20:27 -05:00
i40iw_osdep.h i40iw: Add Quality of Service support 2016-12-03 15:24:51 -05:00
i40iw_p.h i40iw: Remove check on return from device_init_pestat() 2016-12-05 16:09:38 -05:00
i40iw_pble.c i40iw: Code cleanup, remove check of PBLE pages 2016-12-05 16:09:44 -05:00
i40iw_pble.h i40iw: add pble resource files 2016-02-29 17:10:53 -05:00
i40iw_puda.c i40iw: Add Quality of Service support 2016-12-03 15:24:51 -05:00
i40iw_puda.h i40iw: Replace the obsolete crypto hash interface with shash 2016-03-21 16:02:24 -04:00
i40iw_register.h i40iw: add X722 register file 2016-03-16 13:50:53 -04:00
i40iw_status.h RDMA/i40iw: Fix for checking if the QP is destroyed 2016-04-28 16:32:55 -04:00
i40iw_type.h i40iw: Convert page_size to encoded value 2016-12-05 16:09:28 -05:00
i40iw_ucontext.h i40iw: add files for iwarp interface 2016-02-29 17:10:53 -05:00
i40iw_uk.c i40iw: Fix incorrect assignment of SQ head 2016-12-05 16:09:39 -05:00
i40iw_user.h i40iw: Remove macros I40IW_STAG_KEY_FROM_STAG and I40IW_STAG_INDEX_FROM_STAG 2016-12-12 17:13:02 -05:00
i40iw_utils.c i40iw: Add request for reset on CQP timeout 2016-12-05 16:09:44 -05:00
i40iw_verbs.c i40iw: Use correct src address in memcpy to rdma stats counters 2016-12-12 17:19:02 -05:00
i40iw_verbs.h i40iw: Add 2MB page support 2016-12-05 16:09:40 -05:00
i40iw_vf.c i40iw: constify i40iw_vf_cqp_ops structure 2016-05-13 13:47:07 -04:00
i40iw_vf.h i40iw: constify i40iw_vf_cqp_ops structure 2016-05-13 13:47:07 -04:00
i40iw_virtchnl.c i40iw: Remove check on return from device_init_pestat() 2016-12-05 16:09:38 -05:00
i40iw_virtchnl.h i40iw: virtual channel handling files 2016-03-16 13:50:53 -04:00