linux/arch/sparc/prom
Chen Gang 242ece22f0 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>
2013-06-19 02:10:29 -07:00
..
bootstr_32.c arch: sparc: prom: looping issue, need additional length check in the outside looping 2013-06-19 02:10:29 -07:00
bootstr_64.c
cif.S
console_32.c Disintegrate asm/system.h for Sparc 2012-03-28 18:30:03 +01:00
console_64.c Disintegrate asm/system.h for Sparc 2012-03-28 18:30:03 +01:00
init_32.c sparc32: Remove superfluous extern declarations for prom_*() functions 2012-06-27 01:27:45 -07:00
init_64.c sparc: Correct comments about prom_init() return values 2012-06-27 01:27:45 -07:00
Makefile sparc32: drop sun4c support 2012-05-11 19:27:44 -07:00
memory.c of/sparc: convert various prom_* functions to use phandle 2010-10-09 02:33:34 -06:00
misc_32.c Disintegrate asm/system.h for Sparc 2012-03-28 18:30:03 +01:00
misc_64.c Disintegrate asm/system.h for Sparc 2012-03-28 18:30:03 +01:00
mp.c sparc: Remove unnecessary semicolons 2011-06-07 16:06:34 -07:00
p1275.c Disintegrate asm/system.h for Sparc 2012-03-28 18:30:03 +01:00
printf.c sparc: Write to prom console using indirect buffer. 2010-11-30 20:15:58 -08:00
ranges.c Disintegrate asm/system.h for Sparc 2012-03-28 18:30:03 +01:00
tree_32.c Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6 2011-01-10 08:57:03 -08:00
tree_64.c sparc: remove inline marking of EXPORT_SYMBOL functions 2013-06-19 02:09:23 -07:00