]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit66e80f9462c61317a59114f51954ec626893a982
tree3b7fa639a3b1bf1a6addd0d317558ca66bf9dd6c
parent5560ef79c99b8f3eb4a4528c76f4a2ceb09e1289
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