From b3c896af1b1eeac5fd99138261a6fb61b7e4eadf Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 13 Jul 2019 22:34:54 -0400 Subject: [PATCH] multi_audio_test: Continue if getting buffers failed. Don't try and read the buffers anyway, that'll lead to a page fault. --- src/tests/add-ons/kernel/drivers/audio/multi_audio_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/add-ons/kernel/drivers/audio/multi_audio_test.cpp b/src/tests/add-ons/kernel/drivers/audio/multi_audio_test.cpp index c5fe911410..3a735442a6 100644 --- a/src/tests/add-ons/kernel/drivers/audio/multi_audio_test.cpp +++ b/src/tests/add-ons/kernel/drivers/audio/multi_audio_test.cpp @@ -377,6 +377,7 @@ do_play(int argc, char** argv) if (ioctl(sDevice, B_MULTI_BUFFER_EXCHANGE, &bufferInfo, sizeof(multi_buffer_list)) < B_OK) { printf("Getting buffers failed: %s\n", strerror(errno)); + continue; } // fill buffer with data