]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] md: check bio address after mapping through partitions.
authorNeilBrown <neilb@suse.de>
Tue, 31 Oct 2006 01:51:45 +0000 (12:51 +1100)
committerChris Wright <chrisw@sous-sol.org>
Sat, 4 Nov 2006 01:33:50 +0000 (17:33 -0800)
commit3b076a9455026e5d736aeff6ca02a95972dff417
tree648b2528ab11d9a929565a048930f1135114015b
parentd0239f35c7ae63dbe715b1cc66e4860c2cb33154
[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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
block/ll_rw_blk.c