scsi: qla2xxx: Fix gpnid error processing
authorQuinn Tran <quinn.tran@cavium.com>
Mon, 4 Dec 2017 22:44:57 +0000 (14:44 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Mar 2018 09:54:25 +0000 (10:54 +0100)
commite0be82d7801a230bb4a3dad5382c88ae9927aa5f
tree9c88b609b851f25bc081b60ce46067dd2f1ec2b5
parentf58abb5bbd23dc77b9826a7cba0d099bf640a8d9
scsi: qla2xxx: Fix gpnid error processing

commit 22e786ea47f8795c561e1a01b6a66bb2cae2fc20 upstream.

Stop GPNID command from advancing if command has failed.

Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery")
Cc: <stable@vger.kernel.org> # 4.10+
Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_gs.c