Commit 1bd2862
scsi: lpfc: Fix memory leak in lpfc_sli4_driver_resource_setup()
The memory allocated for mboxq using mempool_alloc() is not freed in
some of the early exit error paths. Fix that by moving the
mempool_free() call to an earlier point after last use.
Fixes: d79c9e9 ("scsi: lpfc: Support dynamic unbounded SGL lists on G7 hardware.")
Cc: stable@vger.kernel.org
Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Reviewed-by: Justin Tee <justin.tee@broadcom.com>
Link: https://patch.msgid.link/20260707065304.949135-1-nihaal@cse.iitm.ac.in
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 1d3a742 commit 1bd2862
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8189 | 8189 | | |
8190 | 8190 | | |
8191 | 8191 | | |
| 8192 | + | |
8192 | 8193 | | |
8193 | 8194 | | |
8194 | 8195 | | |
| |||
8311 | 8312 | | |
8312 | 8313 | | |
8313 | 8314 | | |
8314 | | - | |
8315 | | - | |
8316 | 8315 | | |
8317 | 8316 | | |
8318 | 8317 | | |
| |||
0 commit comments