diff options
-rw-r--r-- | src/svm/fifo_segment.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/svm/fifo_segment.c b/src/svm/fifo_segment.c index 489ca2a4929..c2ba6c0eb28 100644 --- a/src/svm/fifo_segment.c +++ b/src/svm/fifo_segment.c @@ -1098,6 +1098,9 @@ fifo_segment_msg_q_alloc (fifo_segment_t *fs, u32 mq_index, size = svm_msg_q_size_to_alloc (cfg); base = fsh_alloc_aligned (fsh, size, 8); + if (!base) + return 0; + fsh->n_reserved_bytes += size; smq = svm_msg_q_init (base, cfg); |