mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 16:16:41 +07:00
mISDN: Read buffer overflow
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>
This commit is contained in:
parent
54706d9905
commit
9bfdac94c7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user