dtlk: off by one in {read,write}_tts()
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 18 Jun 2009 23:49:13 +0000 (16:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 19 Jun 2009 23:46:06 +0000 (16:46 -0700)
commit4390b9e0cfa30c2b1a4d821748d7948fd85356df
tree2aed93d24323270a046de4d996e0a5c2c006cb81
parentbefca96779b0259ac8fad0183e748a62935c39cb
dtlk: off by one in {read,write}_tts()

With a postfix increment retries is incremented beyond DTLK_MAX_RETRIES so
the error message is not displayed correctly.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: James R. Van Zandt <jrv@vanzandt.mv.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/dtlk.c