Commit df66b855 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7bd473fc
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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;