]> err.no Git - linux-2.6/commit
md: fix an unsigned compare to allow creation of bitmaps with v1.0 metadata
authorNeilBrown <neilb@suse.de>
Tue, 23 Oct 2007 03:45:11 +0000 (20:45 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 23 Oct 2007 15:32:06 +0000 (08:32 -0700)
commit85bfb4da8cad483a4e550ec89060d05a4daf895b
tree8cbdfb71e4000a6b3f1ac23d95fcc6caa7085443
parent0895e91d60ef9bdef426d1ce14bb94bd5875870d
md: fix an unsigned compare to allow creation of bitmaps with v1.0 metadata

As page->index is unsigned, this all becomes an unsigned comparison,
which almost always returns an error.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: Stable <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/bitmap.c