scsi: qla2xxx: Cleanup NPIV host in target mode during config teardown
authorQuinn Tran <quinn.tran@cavium.com>
Wed, 23 Aug 2017 22:05:18 +0000 (15:05 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:29:30 +0000 (22:29 -0400)
commitbdbe24de281e2952e6af6eee24bff66bf94b67d1
treefbac6c485bf23fbd6733df85b15b977a9986a22f
parent1f4c7c380b2f0cbd060b8582a1723b3a98f354d2
scsi: qla2xxx: Cleanup NPIV host in target mode during config teardown

When we tear down the NPIV host configuration in target mode, the
qla_tgt struct was left dangling on the global list. This patch cleans
up link list and frees memory.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c
drivers/scsi/qla2xxx/qla_target.h