]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dz: test after postfix decrement fails in dz_console_putchar()
authorRoel Kluin <12o3l@tiscali.nl>
Mon, 28 Apr 2008 09:11:50 +0000 (02:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:16 +0000 (08:58 -0700)
commit1ecf0d0cd28a4bfed3009f752061998e52d14db2
treedc72f443149f69eb5edbed69774248fbfc32636f
parent556637cdabcd5918c7d4a1a2679b8f86fc81e891
dz: test after postfix decrement fails in dz_console_putchar()

When loops reaches 0 the postfix decrement still subtracts, so the subsequent
test fails.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Acked-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Johannes Weiner <hannes@saeurebad.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/dz.c