+ fix-typo-in-drivers-isdn-hisax-q931c.patch added to -mm tree

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

 



The patch titled

     Fix typo in drivers/isdn/hisax/q931.c

has been added to the -mm tree.  Its filename is

     fix-typo-in-drivers-isdn-hisax-q931c.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Fix typo in drivers/isdn/hisax/q931.c
From: Eric Sesterhenn <snakebyte@xxxxxx>


This fixes coverity bug #517.

Since IESIZE is greater than IESIZE_NI1 we might run past the end of
ielist_ni1.  This fixes it by using the proper IESIZE_NI1 define.

Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx>
Cc: Karsten Keil <kkeil@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/isdn/hisax/q931.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/isdn/hisax/q931.c~fix-typo-in-drivers-isdn-hisax-q931c drivers/isdn/hisax/q931.c
--- devel/drivers/isdn/hisax/q931.c~fix-typo-in-drivers-isdn-hisax-q931c	2006-06-06 01:14:05.000000000 -0700
+++ devel-akpm/drivers/isdn/hisax/q931.c	2006-06-06 01:14:05.000000000 -0700
@@ -1402,12 +1402,12 @@ dlogframe(struct IsdnCardState *cs, stru
 			}
 			/* No, locate it in the table */
 			if (cset == 0) {
-				for (i = 0; i < IESIZE; i++)
+				for (i = 0; i < IESIZE_NI1; i++)
 					if (*buf == ielist_ni1[i].nr)
 						break;
 
 				/* When not found, give appropriate msg */
-				if (i != IESIZE) {
+				if (i != IESIZE_NI1) {
 					dp += sprintf(dp, "  %s\n", ielist_ni1[i].descr);
 					dp += ielist_ni1[i].f(dp, buf);
 				} else
_

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

git-alsa.patch
git-gfs2.patch
more-bug_on-conversion.patch
fix-typo-in-drivers-isdn-hisax-q931c.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