linux/drivers/s390
Steffen Maier 01e60527f0 [SCSI] zfcp: Bounds checking for deferred error trace
The pl vector has scount elements, i.e. pl[scount-1] is the last valid
element. For maximum sized requests, payload->counter == scount after
the last loop iteration. Therefore, do bounds checking first (with
boolean shortcut) to not access the invalid element pl[scount].

Do not trust the maximum sbale->scount value from the HBA
but ensure we won't access the pl vector out of our allocated bounds.
While at it, clean up scoping and prevent unnecessary memset.

Minor fix for 86a9668a8d
"[SCSI] zfcp: support for hardware data router"

Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
Reviewed-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Cc: <stable@vger.kernel.org> #3.2+
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-09-24 12:11:01 +04:00
..
block s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
char s390/sclp_sdias: Add missing break and "fall through" 2012-08-08 07:32:55 -07:00
cio s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
crypto s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
kvm KVM updates for the 3.6 merge window 2012-07-24 12:01:20 -07:00
net qeth: repair crash in qeth_l3_vlan_rx_kill_vid() 2012-07-25 15:24:13 -07:00
scsi [SCSI] zfcp: Bounds checking for deferred error trace 2012-09-24 12:11:01 +04:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00