mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
gigaset: beyond ARRAY_SIZE of iwb->data
Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4f72427998
commit
c40499e04b
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ int gigaset_isowbuf_getbytes(struct isowbuf_t *iwb, int size)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
src = iwb->read;
|
src = iwb->read;
|
||||||
if (unlikely(limit > BAS_OUTBUFSIZE + BAS_OUTBUFPAD ||
|
if (unlikely(limit >= BAS_OUTBUFSIZE + BAS_OUTBUFPAD ||
|
||||||
(read < src && limit >= src))) {
|
(read < src && limit >= src))) {
|
||||||
pr_err("isoc write buffer frame reservation violated\n");
|
pr_err("isoc write buffer frame reservation violated\n");
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
Loading…
Reference in a new issue