[SCSI] osst: wrong index used in inner loop
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 23 May 2011 22:29:12 +0000 (15:29 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 24 May 2011 17:08:57 +0000 (13:08 -0400)
commita061f57d662ac2b19a1ff1955349adce7a282a5d
tree60645af34a8a24dfb5b6c256f65a537afa85715a
parent8e910965975a125fff806acae80ab2b640a8dac7
[SCSI] osst: wrong index used in inner loop

Index i was already used in the outer loop.  Fixes a potentially-infinite
loop.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Willem Riede <osst@riede.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
drivers/scsi/osst.c