kernel: Return after panic when freeing invalid interrupt range.

The panic is continuable, but moving on with the free will overrun the
array and corrupt memory.

Change-Id: I9a5849a40158042150a25740ca57d711aee872bf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3114
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Michael Lotz
2020-07-31 23:36:55 +00:00
committed by waddlesplash
parent 4b6a48f4ae
commit 75b8b6863a
+1
View File
@@ -696,6 +696,7 @@ free_io_interrupt_vectors(long count, long startVector)
if (startVector + count > NUM_IO_VECTORS) {
panic("invalid start vector %ld or count %ld supplied to "
"free_io_interrupt_vectors\n", startVector, count);
return;
}
dprintf("free_io_interrupt_vectors: freeing %ld vectors starting "