cciss: call BUG() earlier
commit713b686494a577b3c4f4f9f585a4705fc30d51c2
authorDan Carpenter <error27@gmail.com>
Tue, 1 Jun 2010 10:17:48 +0000 (1 12:17 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 1 Jun 2010 10:17:48 +0000 (1 12:17 +0200)
tree3b7fa639a3b1bf1a6addd0d317558ca66bf9dd6c
parent099c5c310e9744bd0654881bb55c137051228e56
cciss: call BUG() earlier

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>
drivers/block/cciss_scsi.c