projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54706d9
)
mISDN: Read buffer overflow
author
roel kluin
<roel.kluin@gmail.com>
Fri, 31 Jul 2009 03:43:59 +0000
(
03:43
+0000)
committer
David S. Miller
<davem@davemloft.net>
Sun, 2 Aug 2009 19:20:42 +0000
(12:20 -0700)
Check whether index is within bounds before testing the element.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Karsten Keil <keil@b1-systems.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/l1oip_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/isdn/mISDN/l1oip_core.c
b/drivers/isdn/mISDN/l1oip_core.c
index 990e6a7e6674dce0c866083fc576ce8acb1d9e52..0ebce046ade45e1822c9024a9be32c6cd5aa68c5 100644
(file)
--- a/
drivers/isdn/mISDN/l1oip_core.c
+++ b/
drivers/isdn/mISDN/l1oip_core.c
@@
-1480,7
+1480,7
@@
l1oip_init(void)
return -ENOMEM;
l1oip_cnt = 0;
- while (
type[l1oip_cnt] && l1oip_cnt < MAX_CARDS
) {
+ while (
l1oip_cnt < MAX_CARDS && type[l1oip_cnt]
) {
switch (type[l1oip_cnt] & 0xff) {
case 1:
pri = 0;