From c49ae03d01c933e30cb30422991b9eac43eb9f3d Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Wed, 13 Sep 2023 22:26:41 +0200 Subject: [PATCH] Audio stream: fixed missing NULL pointer check in audio device driver selection. --- openrtx/src/core/audio_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openrtx/src/core/audio_stream.c b/openrtx/src/core/audio_stream.c index 24bc5979..bfb3438a 100644 --- a/openrtx/src/core/audio_stream.c +++ b/openrtx/src/core/audio_stream.c @@ -91,7 +91,7 @@ streamId audioStream_start(const pathId path, stream_sample_t * const buf, } // No audio device found - if(dev == NULL) + if((dev == NULL) || (dev->driver == NULL)) return -ENODEV; // Search for an empty audio stream slot