- off-by-one-in-arch-arm-common-icst.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Off-by-one in arch/arm/common/icst*

has been removed from the -mm tree.  Its filename is

     off-by-one-in-arch-arm-common-icst.patch

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

------------------------------------------------------
Subject: Off-by-one in arch/arm/common/icst*
From: Eric Sesterhenn <snakebyte@xxxxxx>

A quick find -iname \*.[ch] | xargs grep "> ARRAY_SIZE(", revealed
these in the icst drivers.
If i == ARRAY_SIZE, we get past the idx2s array.

Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx>
Cc: Russell King <rmk@xxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/arm/common/icst307.c |    4 ++--
 arch/arm/common/icst525.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff -puN arch/arm/common/icst307.c~off-by-one-in-arch-arm-common-icst arch/arm/common/icst307.c
--- a/arch/arm/common/icst307.c~off-by-one-in-arch-arm-common-icst
+++ a/arch/arm/common/icst307.c
@@ -57,7 +57,7 @@ icst307_khz_to_vco(const struct icst307_
 			break;
 	} while (i < ARRAY_SIZE(idx2s));
 
-	if (i > ARRAY_SIZE(idx2s))
+	if (i >= ARRAY_SIZE(idx2s))
 		return vco;
 
 	vco.s = idx2s[i];
@@ -119,7 +119,7 @@ icst307_ps_to_vco(const struct icst307_p
 			break;
 	} while (i < ARRAY_SIZE(idx2s));
 
-	if (i > ARRAY_SIZE(idx2s))
+	if (i >= ARRAY_SIZE(idx2s))
 		return vco;
 
 	vco.s = idx2s[i];
diff -puN arch/arm/common/icst525.c~off-by-one-in-arch-arm-common-icst arch/arm/common/icst525.c
--- a/arch/arm/common/icst525.c~off-by-one-in-arch-arm-common-icst
+++ a/arch/arm/common/icst525.c
@@ -55,7 +55,7 @@ icst525_khz_to_vco(const struct icst525_
 			break;
 	} while (i < ARRAY_SIZE(idx2s));
 
-	if (i > ARRAY_SIZE(idx2s))
+	if (i >= ARRAY_SIZE(idx2s))
 		return vco;
 
 	vco.s = idx2s[i];
@@ -118,7 +118,7 @@ icst525_ps_to_vco(const struct icst525_p
 			break;
 	} while (i < ARRAY_SIZE(idx2s));
 
-	if (i > ARRAY_SIZE(idx2s))
+	if (i >= ARRAY_SIZE(idx2s))
 		return vco;
 
 	vco.s = idx2s[i];
_

Patches currently in -mm which might be from snakebyte@xxxxxx are

origin.patch
git-arm.patch
git-dvb.patch
git-gfs2.patch
possible-dereference-in.patch
git-intelfb.patch
remove-unnecessary-check-in-drivers-net-depcac.patch
git-net.patch
off-by-one-in-arch-ppc-platforms-mpc8.patch
remove-unnecessary-check-in.patch
git-scsi-misc.patch
remove-unnecessary-check-in-drivers-scsi-sgc.patch
overrun-in-drivers-scsi-scsic.patch
uninitialized-variable-in-drivers-net-wan-syncpppc.patch
off-by-one-in-drivers-char-mwave-mwaveddc.patch

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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux