The patch titled
     md: fix an unsigned compare to allow creation of bitmaps with v1.0 metadata
has been removed from the -mm tree.  Its filename was
     
md-fix-an-unsigned-compare-to-allow-creation-of-bitmaps-with-v10-metadata.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: md: fix an unsigned compare to allow creation of bitmaps with v1.0 
metadata
From: NeilBrown <[EMAIL PROTECTED]>

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

Signed-off-by: Neil Brown <[EMAIL PROTECTED]>
Cc: Stable <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 drivers/md/bitmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN 
drivers/md/bitmap.c~md-fix-an-unsigned-compare-to-allow-creation-of-bitmaps-with-v10-metadata
 drivers/md/bitmap.c
--- 
a/drivers/md/bitmap.c~md-fix-an-unsigned-compare-to-allow-creation-of-bitmaps-with-v10-metadata
+++ a/drivers/md/bitmap.c
@@ -274,7 +274,7 @@ static int write_sb_page(struct bitmap *
                        if (bitmap->offset < 0) {
                                /* DATA  BITMAP METADATA  */
                                if (bitmap->offset
-                                   + page->index * (PAGE_SIZE/512)
+                                   + (long)(page->index * (PAGE_SIZE/512))
                                    + size/512 > 0)
                                        /* bitmap runs in to metadata */
                                        return -EINVAL;
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

git-md-accel.patch
embed-a-struct-path-into-struct-nameidata-instead-of-nd-dentrymnt.patch
embed-a-struct-path-into-struct-nameidata-instead-of-nd-dentrymnt-checkpatch-fixes.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to