summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/dma_buf_allocator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/dma_buf_allocator.cpp b/src/libcamera/dma_buf_allocator.cpp
index 5ae51721..5ec29949 100644
--- a/src/libcamera/dma_buf_allocator.cpp
+++ b/src/libcamera/dma_buf_allocator.cpp
@@ -132,7 +132,7 @@ UniqueFD DmaBufAllocator::allocFromUDmaBuf(const char *name, std::size_t size)
std::size_t pageMask = sysconf(_SC_PAGESIZE) - 1;
size = (size + pageMask) & ~pageMask;
- int ret = memfd_create(name, MFD_ALLOW_SEALING);
+ int ret = memfd_create(name, MFD_ALLOW_SEALING | MFD_CLOEXEC);
if (ret < 0) {
ret = errno;
LOG(DmaBufAllocator, Error)