]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dz: test after postfix decrement fails in dz_console_putchar()
authorRoel Kluin <12o3l@tiscali.nl>
Mon, 28 Apr 2008 17:15:41 +0000 (17:15 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 May 2008 21:44:38 +0000 (14:44 -0700)
commit35a398abdc1b5111b62bca9174bc5ccf973ab6dc
treec7e5f27e52de3cbd034656e2e88a2fdc28f360fd
parentf2645293d3aa4ecde52a3f5e6982b43d60171f36
dz: test after postfix decrement fails in dz_console_putchar()

commit 1ecf0d0cd28a4bfed3009f752061998e52d14db2 upstream

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/dz.c