[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4A15B412.8020205@gmail.com>
Date: Thu, 21 May 2009 22:05:38 +0200
From: Roel Kluin <roel.kluin@...il.com>
To: hjlipp@....de
CC: gigaset307x-common@...ts.sourceforge.net, netdev@...r.kernel.org
Subject: [PATCH] X:beyond ARRAY_SIZE of iwb->data
Do not go beyond ARRAY_SIZE of iwb->data
Signed-off-by: Roel Kluin <roel.kluin@...il.com>
---
diff --git a/drivers/isdn/gigaset/isocdata.c b/drivers/isdn/gigaset/isocdata.c
index fbce522..5569a6e 100644
--- a/drivers/isdn/gigaset/isocdata.c
+++ b/drivers/isdn/gigaset/isocdata.c
@@ -177,7 +177,7 @@ int gigaset_isowbuf_getbytes(struct isowbuf_t *iwb, int size)
return -EINVAL;
}
src = iwb->read;
- if (unlikely(limit > BAS_OUTBUFSIZE + BAS_OUTBUFPAD ||
+ if (unlikely(limit >= BAS_OUTBUFSIZE + BAS_OUTBUFPAD ||
(read < src && limit >= src))) {
err("isoc write buffer frame reservation violated");
return -EFAULT;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists