login
Header Space

 
 

Re: [PATCH] dz: test after postfix decrement fails in dz_console_putchar()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Roel Kluin <12o3l@...>
Cc: Maciej W. Rozycki <macro@...>, lkml <linux-kernel@...>
Date: Wednesday, April 9, 2008 - 9:41 am

Hi,

Roel Kluin <12o3l@tiscali.nl> writes:


It will run loops + 1 times.  After your change it does run loops times.


The intention was probably that this gets executed if the break in the
loop (trdy == dport->port.line) is reached.  Without your fix, this
branch is also taken if the while-loop terminates with loops == -1
because of the postfix dec.

Your fix is correct but your changelog entry is wrong.

	Hannes
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] dz: test after postfix decrement fails in dz_con..., Johannes Weiner, (Wed Apr 9, 9:41 am)
Re: [PATCH] dz: test after postfix decrement fails in dz_con..., Maciej W. Rozycki, (Wed Apr 9, 10:35 am)
speck-geostationary