cciss: call BUG() earlier
authorDan Carpenter <error27@gmail.com>
Tue, 1 Jun 2010 10:17:48 +0000 (12:17 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 1 Jun 2010 10:17:48 +0000 (12:17 +0200)
I moved the range check after the increment.  The current code would
write past the end of the array once before calling BUG().

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>

No differences found