summaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/leon_pci_grpci1.c
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-05-30 03:35:22 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-06-19 09:10:29 (GMT)
commit242ece22f0bd90e237365e51c5bd90a21693d6c3 (patch)
tree7fec0cddbb435a1df405f27f45822cef2e8c3c9d /arch/sparc/kernel/leon_pci_grpci1.c
parentdbebe0da64d0738a21221a7f9d29510b9f29d908 (diff)
downloadlinux-fsl-qoriq-242ece22f0bd90e237365e51c5bd90a21693d6c3.tar.xz
arch: sparc: prom: looping issue, need additional length check in the outside looping
When "cp >= barg_buf + BARG_LEN-2", it breaks internel looping 'while', but outside loop 'for' still has effect, so "*cp++ = ' '" will continue repeating which may cause memory overflow. So need additional length check for it in the outside looping. Also beautify the related code which found by "./scripts/checkpatch.pl" Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/leon_pci_grpci1.c')
0 files changed, 0 insertions, 0 deletions