[SCSI] dpt_i2o: move range check forward
authorDan Carpenter <error27@gmail.com>
Thu, 15 Jul 2010 08:20:19 +0000 (10:20 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:05:43 +0000 (09:05 -0500)
commite84d96dbb0638186feb526c32810a3400f33d0c8
treef9c17031c91040214cbe3ea745aa53d10602d340
parent32de596074592ee8593416c83347b5a787e825c5
[SCSI] dpt_i2o: move range check forward

The check to test that "bus_no" was valid came after we had already used
it as an array offset.  This patch moves it forward.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/dpt_i2o.c