Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bfdac94 authored by roel kluin's avatar roel kluin Committed by David S. Miller
Browse files

mISDN: Read buffer overflow



Check whether index is within bounds before testing the element.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarKarsten Keil <keil@b1-systems.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 54706d99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;