linux/drivers/infiniband/hw/i40iw
Sindhu Devale 783a11bf24 RDMA/i40iw: Fix error unwinding when i40iw_hmc_sd_one fails
When i40iw_hmc_sd_one fails, chunk is freed without the deletion of chunk
entry in the PBLE info list.

Fix it by adding the chunk entry to the PBLE info list only after
successful addition of SD in i40iw_hmc_sd_one.

This fixes a static checker warning reported here:
  https://lore.kernel.org/linux-rdma/YHV4CFXzqTm23AOZ@mwanda/

Fixes: 9715830157 ("i40iw: add pble resource files")
Link: https://lore.kernel.org/r/20210416002104.323-1-shiraz.saleem@intel.com
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sindhu Devale <sindhu.devale@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-04-20 09:36:52 -03:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile i40e: Move client header location 2020-06-25 22:25:13 -07:00
i40iw.h RDMA: Delete not-used static inline functions 2021-03-22 09:31:19 -03:00
i40iw_cm.c RDMA: Fix kernel-doc compilation warnings 2021-03-22 09:31:19 -03:00
i40iw_cm.h RDMA: Replace zero-length array with flexible-array member 2020-02-20 13:33:51 -04:00
i40iw_ctrl.c RDMA/hw/i40iw/i40iw_ctrl: Fix a bunch of misspellings and formatting issues 2021-01-19 20:33:40 -04:00
i40iw_d.h RDMA/i40iw: Remove push code from i40iw 2020-12-01 20:50:01 -04:00
i40iw_hmc.c RDMA: Fix kernel-doc compilation warnings 2021-03-22 09:31:19 -03:00
i40iw_hmc.h
i40iw_hw.c RDMA/hw/i40iw/i40iw_hw: Provide description for 'ipv4', remove 'user_pri' and fix 'iwcq' 2021-01-19 20:33:41 -04:00
i40iw_main.c RDMA/i40iw: Use DEFINE_SPINLOCK() for spinlock 2021-04-12 15:37:38 -03:00
i40iw_osdep.h RDMA: Delete not-used static inline functions 2021-03-22 09:31:19 -03:00
i40iw_p.h i40iw: Report correct firmware version 2020-03-18 13:53:44 -03:00
i40iw_pble.c RDMA/i40iw: Fix error unwinding when i40iw_hmc_sd_one fails 2021-04-20 09:36:52 -03:00
i40iw_pble.h
i40iw_puda.c RDMA: Fix kernel-doc compilation warnings 2021-03-22 09:31:19 -03:00
i40iw_puda.h i40iw: Free IEQ resources 2018-01-16 20:38:18 -07:00
i40iw_register.h
i40iw_status.h RDMA/i40iw: Remove push code from i40iw 2020-12-01 20:50:01 -04:00
i40iw_type.h RDMA/i40iw: Remove push code from i40iw 2020-12-01 20:50:01 -04:00
i40iw_uk.c RDMA/hw/i40iw/i40iw_uk: Clean-up some function documentation headers 2021-01-19 20:33:42 -04:00
i40iw_user.h RDMA/i40iw: Remove push code from i40iw 2020-12-01 20:50:01 -04:00
i40iw_utils.c RDMA: Fix kernel-doc compilation warnings 2021-03-22 09:31:19 -03:00
i40iw_verbs.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
i40iw_verbs.h i40iw: Add support to make destroy QP synchronous 2020-09-22 20:23:18 -03:00
i40iw_vf.c
i40iw_vf.h
i40iw_virtchnl.c RDMA: Fix kernel-doc compilation warnings 2021-03-22 09:31:19 -03:00
i40iw_virtchnl.h