Skip to content

Commit c13e733

Browse files
Michal Grzedzickimartinkpetersen
authored andcommitted
scsi: pm80xx: Avoid leaking tags when processing OPC_INB_SET_CONTROLLER_CONFIG command
Tags allocated for OPC_INB_SET_CONTROLLER_CONFIG command need to be freed when we receive the response. Signed-off-by: Michal Grzedzicki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Jack Wang <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 71996bb commit c13e733

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/scsi/pm8001/pm80xx_hwi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3671,10 +3671,12 @@ static int mpi_set_controller_config_resp(struct pm8001_hba_info *pm8001_ha,
36713671
(struct set_ctrl_cfg_resp *)(piomb + 4);
36723672
u32 status = le32_to_cpu(pPayload->status);
36733673
u32 err_qlfr_pgcd = le32_to_cpu(pPayload->err_qlfr_pgcd);
3674+
u32 tag = le32_to_cpu(pPayload->tag);
36743675

36753676
pm8001_dbg(pm8001_ha, MSG,
36763677
"SET CONTROLLER RESP: status 0x%x qlfr_pgcd 0x%x\n",
36773678
status, err_qlfr_pgcd);
3679+
pm8001_tag_free(pm8001_ha, tag);
36783680

36793681
return 0;
36803682
}

0 commit comments

Comments
 (0)