On Thu, Apr 15, 2021 at 07:21:04PM -0500, Shiraz Saleem wrote: > From: Sindhu Devale <sindhu.devale@xxxxxxxxx> > > 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 in [1] > > [1] https://lore.kernel.org/linux-rdma/YHV4CFXzqTm23AOZ@mwanda/ > > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Signed-off-by: Sindhu Devale <sindhu.devale@xxxxxxxxx> > Signed-off-by: Shiraz Saleem <shiraz.saleem@xxxxxxxxx> > --- > drivers/infiniband/hw/i40iw/i40iw_pble.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) I added a fixes line an applied to for-next, thanks Jason