diff for duplicates of <20090206132950.96c3f92e.akpm@linux-foundation.org> diff --git a/a/1.txt b/N1/1.txt index 0313c8b..1696df2 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -6,7 +6,7 @@ Guennadi Liakhovetski <lg@denx.de> wrote: > for (pos = 0; pos < bits; pos += (1 << order)) > if (__reg_op(bitmap, pos, order, REG_OP_ISFREE)) > break; -> if (pos = bits) +> if (pos == bits) > return -ENOMEM; > > can only return an error (-ENOMEM) if bits is a multiple of (1 << order), @@ -30,7 +30,7 @@ in that way? > for (pos = 0; pos < bits; pos += (1 << order)) > if (__reg_op(bitmap, pos, order, REG_OP_ISFREE)) > break; -> - if (pos = bits) +> - if (pos == bits) > + if (pos + (1 << order) > bits) > return -ENOMEM; > __reg_op(bitmap, pos, order, REG_OP_ALLOC); diff --git a/a/content_digest b/N1/content_digest index fd7d3e1..7ab4a7e 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -8,7 +8,7 @@ "ref\0Pine.LNX.4.64.0902061313260.6241@axis700.grange\0" "From\0Andrew Morton <akpm@linux-foundation.org>\0" "Subject\0Re: [PATCH] fix broken size test in bitmap_find_free_region()\0" - "Date\0Fri, 06 Feb 2009 21:29:50 +0000\0" + "Date\0Fri, 6 Feb 2009 13:29:50 -0800\0" "To\0Guennadi Liakhovetski <lg@denx.de>\0" "Cc\0linux-kernel@vger.kernel.org" lethal@linux-sh.org @@ -29,7 +29,7 @@ "> \tfor (pos = 0; pos < bits; pos += (1 << order))\n" "> \t\tif (__reg_op(bitmap, pos, order, REG_OP_ISFREE))\n" "> \t\t\tbreak;\n" - "> \tif (pos = bits)\n" + "> \tif (pos == bits)\n" "> \t\treturn -ENOMEM;\n" "> \n" "> can only return an error (-ENOMEM) if bits is a multiple of (1 << order), \n" @@ -53,10 +53,10 @@ "> \tfor (pos = 0; pos < bits; pos += (1 << order))\n" "> \t\tif (__reg_op(bitmap, pos, order, REG_OP_ISFREE))\n" "> \t\t\tbreak;\n" - "> -\tif (pos = bits)\n" + "> -\tif (pos == bits)\n" "> +\tif (pos + (1 << order) > bits)\n" "> \t\treturn -ENOMEM;\n" "> \t__reg_op(bitmap, pos, order, REG_OP_ALLOC);\n" "> \treturn pos;" -0b2b64dfc56f50ae43c524a08ef30a224656ff7a77e12e22fba6985ff708dc29 +a056a27a6145452ac932a0cf7fdf1b0de103c06c930e10f02c73d1971b98d5a3
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.