]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libfc: safeguard against invalid exchange index
authorHannes Reinecke <hare@suse.de>
Thu, 13 Oct 2016 13:10:49 +0000 (15:10 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:52 +0000 (17:29 -0500)
commite41aa219b4dc2d8685a4d99690b62f13c645671d
treed2f0d144aeb58278b397509973f0f3ddc7f62323
parentbbed718348b9fa9cfe2e8a5a1af00c1481926728
scsi: libfc: safeguard against invalid exchange index

The cached exchange index might be invalid, in which case
we should drop down to allocate a new one.
And we should not try to access an invalid exchange when
responding to a BA_ABTS.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_exch.c