[PATCH] md: check bio address after mapping through partitions.
authorNeilBrown <neilb@suse.de>
Tue, 31 Oct 2006 06:07:21 +0000 (22:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 31 Oct 2006 16:07:01 +0000 (08:07 -0800)
commit5ddfe9691c91a244e8d1be597b6428fcefd58103
treed051fd7c370a7b8ad91f24c6f99f985b8b1252b2
parent45ec4ababe999cb95f9c0cad03b2689cb0b77a2b
[PATCH] md: check bio address after mapping through partitions.

Partitions are not limited to live within a device.  So we should range
check after partition mapping.

Note that 'maxsector' was being used for two different things.  I have
split off the second usage into 'old_sector' so that maxsector can be still
be used for it's primary usage later in the function.

Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
block/ll_rw_blk.c