devip: panic if we exceed the number of media entries (thanks k0ga)

This commit is contained in:
cinap_lenrek 2024-11-13 19:31:12 +00:00
parent b4e8108d6c
commit 3f7a323e31

View file

@ -105,6 +105,7 @@ addipmedium(Medium *med)
media[i] = med;
break;
}
panic("addipmedium: too many mediums");
}
/*