summaryrefslogtreecommitdiff
path: root/fs/9p/Makefile
diff options
context:
space:
mode:
authorSteffen Maier <maier@linux.vnet.ibm.com>2012-09-04 13:23:31 (GMT)
committerJames Bottomley <JBottomley@Parallels.com>2012-09-24 08:11:01 (GMT)
commit01e60527f0a49b3d7df603010bd6079bb4b6cf07 (patch)
tree5683b67c13a599c43d75f038a341f9dd79c49147 /fs/9p/Makefile
parent0100998dbfe6dfcd90a6e912ca7ed6f255d48f25 (diff)
downloadlinux-fsl-qoriq-01e60527f0a49b3d7df603010bd6079bb4b6cf07.tar.xz
[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 86a9668a8d29ea711613e1cb37efa68e7c4db564 "[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>
Diffstat (limited to 'fs/9p/Makefile')
0 files changed, 0 insertions, 0 deletions