diff options
author | Andrew Morton <akpm@osdl.org> | 2006-11-03 07:06:56 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-11-03 21:27:55 +0100 |
commit | df66b8552be5fdab5c4b4d53ee08b99388b9bd02 (patch) | |
tree | e206c3b5f1d5b95f0467196aece471569eee062f /block/ll_rw_blk.c | |
parent | [PATCH] eCryptfs: Fix pointer deref (diff) | |
download | linux-df66b8552be5fdab5c4b4d53ee08b99388b9bd02.tar.xz linux-df66b8552be5fdab5c4b4d53ee08b99388b9bd02.zip |
[PATCH] tidy "md: check bio address after mapping through partitions"
Neil's xterms are too wide.
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r-- | block/ll_rw_blk.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index c7b1dac8bee9..9eaee6640535 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c @@ -3075,11 +3075,12 @@ end_io: if (maxsector) { sector_t sector = bio->bi_sector; - if (maxsector < nr_sectors || maxsector - nr_sectors < sector) { + if (maxsector < nr_sectors || + maxsector - nr_sectors < sector) { /* - * This may well happen - partitions are not checked - * to make sure they are within the size of the - * whole device. + * This may well happen - partitions are not + * checked to make sure they are within the size + * of the whole device. */ handle_bad_sector(bio); goto end_io; |