X:beyond ARRAY_SIZE of iwb->data
Subsystems (2)
PATCH 1/1 X:beyond ARRAY_SIZE of iwb->data
Do not go beyond ARRAY_SIZE of iwb->data
Signed-off-by Roel Kluin <[email protected]>
---
drivers/isdn/gigaset/isocdata.c +1 -1
@@ -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 ;