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:
committed by
waddlesplash
parent
4b6a48f4ae
commit
75b8b6863a
@@ -696,6 +696,7 @@ free_io_interrupt_vectors(long count, long startVector)
|
|||||||
if (startVector + count > NUM_IO_VECTORS) {
|
if (startVector + count > NUM_IO_VECTORS) {
|
||||||
panic("invalid start vector %ld or count %ld supplied to "
|
panic("invalid start vector %ld or count %ld supplied to "
|
||||||
"free_io_interrupt_vectors\n", startVector, count);
|
"free_io_interrupt_vectors\n", startVector, count);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
dprintf("free_io_interrupt_vectors: freeing %ld vectors starting "
|
dprintf("free_io_interrupt_vectors: freeing %ld vectors starting "
|
||||||
|
|||||||
Reference in New Issue
Block a user