scsi: qla2xxx: Cleanup fcport memory to prevent leak
Clean up fcport list and loopid in one place and iterate through for loop. Signed-off-by: Quinn Tran <qtran@marvell.com> Signed-off-by: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
此提交包含在:
@@ -4821,6 +4821,8 @@ qla2x00_free_fcport(fc_port_t *fcport)
|
||||
|
||||
fcport->ct_desc.ct_sns = NULL;
|
||||
}
|
||||
list_del(&fcport->list);
|
||||
qla2x00_clear_loop_id(fcport);
|
||||
kfree(fcport);
|
||||
}
|
||||
|
||||
|
新增問題並參考
封鎖使用者