]> git.kernelconcepts.de Git - karo-tx-linux.git/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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 17:30:22 +0000 (09:30 -0800)
commit67663d780910f8f9621c874802bb04f2c9dcda25
tree68fbe82bd625ff965084b79ad5966f7415b91b46
parent9c85df7a4f320183722414fd71726f25b1a98209
md: fix an unsigned compare to allow creation of bitmaps with v1.0 metadata

patch 85bfb4da8cad483a4e550ec89060d05a4daf895b in mainline.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/bitmap.c