Commit d0f3c37
scsi: mpi3mr: Fix mpi3mr_hba_port memory leak in mpi3mr_remove()
Free mpi3mr_hba_port at .remove.
Fixes: 42fc9fe ("scsi: mpi3mr: Add helper functions to manage device's port")
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Link: https://lore.kernel.org/r/20230302234336.25456-4-thenzl@redhat.com
Acked-by: Sathya Prakash Veerichetty <sathya.prakash@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 7d2b021 commit d0f3c37
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5078 | 5078 | | |
5079 | 5079 | | |
5080 | 5080 | | |
| 5081 | + | |
5081 | 5082 | | |
5082 | 5083 | | |
5083 | 5084 | | |
| |||
5117 | 5118 | | |
5118 | 5119 | | |
5119 | 5120 | | |
| 5121 | + | |
| 5122 | + | |
| 5123 | + | |
| 5124 | + | |
| 5125 | + | |
| 5126 | + | |
| 5127 | + | |
| 5128 | + | |
| 5129 | + | |
| 5130 | + | |
5120 | 5131 | | |
5121 | 5132 | | |
5122 | 5133 | | |
| |||
0 commit comments