From 9c499e3a686a2421102e3b86a3924382885e2280 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 25 Feb 2021 09:57:04 -0800 Subject: svm: fix shared hdr migration Avoid changing the header on attach as it may be in use. Instead, as for chunks, allocate header to be collected on detach. Type: fix Signed-off-by: Florin Coras Change-Id: Ib316ecb5d61ae161032869b6f6a1863f1105a1d9 --- src/svm/fifo_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/svm/fifo_types.h') diff --git a/src/svm/fifo_types.h b/src/svm/fifo_types.h index a1b57748e09..670fd2aff1a 100644 --- a/src/svm/fifo_types.h +++ b/src/svm/fifo_types.h @@ -110,6 +110,7 @@ typedef struct _svm_fifo struct _svm_fifo *prev; /**< prev in active chain */ svm_fifo_chunk_t *chunks_at_attach; /**< chunks to be accounted at detach */ + svm_fifo_shared_t *hdr_at_attach; /**< hdr to be freed at detach */ #if SVM_FIFO_TRACE svm_fifo_trace_elem_t *trace; -- cgit 1.2.3-korg