drivers/block/paride/pg.c: underflow bug in pg_write()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 21 Jan 2014 22:39:22 +0000 (14:39 -0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Jan 2014 04:16:56 +0000 (20:16 -0800)
commit3f7d758b1e3c18360f955d1d5e224865c5e0b881
tree34ceec2d6341be4d8668a257b9931c0271824431
parentf2fc8af41c351d11dcdd863356ff31fccf86cfed
drivers/block/paride/pg.c: underflow bug in pg_write()

The test here can underflow so we pass bogus lengths to the hardware.
It's a static checker fix and I don't know the impact.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/paride/pg.c