Skip to content
Commit 85bfb4da authored by NeilBrown's avatar NeilBrown Committed by Linus Torvalds
Browse files

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: default avatarNeil Brown <neilb@suse.de>
Cc: Stable <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0895e91d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment