]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit6d66205e2e260b1b210dcff301a8ed94dd882c83
treed051fd7c370a7b8ad91f24c6f99f985b8b1252b2
parentdf4ef152862030dbfa54f1f9035a4babbf4a4a79
[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