From c0932dd493c50deb51c0e0fce32aeb3b21c334d8 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 16 Dec 2024 17:11:19 -0800 Subject: [PATCH] VisionBuf: don't zero out memory --- msgq/visionipc/visionbuf_ion.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/msgq/visionipc/visionbuf_ion.cc b/msgq/visionipc/visionbuf_ion.cc index 13be15491..71e3880c2 100644 --- a/msgq/visionipc/visionbuf_ion.cc +++ b/msgq/visionipc/visionbuf_ion.cc @@ -76,8 +76,6 @@ void VisionBuf::allocate(size_t length) { MAP_SHARED, ion_fd_data.fd, 0); assert(mmap_addr != MAP_FAILED); - memset(mmap_addr, 0, ion_alloc.len); - this->len = length; this->mmap_len = ion_alloc.len; this->addr = mmap_addr;