]> git.baikalelectronics.ru Git - kernel.git/commit
paride: fix off-by-one test
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 11 Mar 2010 22:09:47 +0000 (14:09 -0800)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 12 Mar 2010 09:03:42 +0000 (10:03 +0100)
commit21db063eeccedc3a3955a0fc410d0a6566ff9914
treefd901e7114ddc7e1c7905ad768b982b6ff17ef66
parent11bee24b722295e8ad43bdfc6dc0dae119fbf030
paride: fix off-by-one test

With `while (j++ < PX_SPIN)' j reaches PX_SPIN + 1 after the loop.  This
is probably unlikely to produce a problem.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/paride/pcd.c
drivers/block/paride/pf.c
drivers/block/paride/pt.c