scsi: qla2xxx: Cleanup fcport memory to prevent leak
authorQuinn Tran <qtran@marvell.com>
Tue, 2 Apr 2019 21:24:29 +0000 (14:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Apr 2019 03:45:58 +0000 (23:45 -0400)
commitffbc64766683634d2c233519f2e70d2123580108
tree1bbad7ca22791e73c31df20d9f053fed88f990ce
parenta6b95d1c71e9adef5ab5ba77c42a50d0b7b409d6
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>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_os.c