Skip to content

Commit 23cb05a

Browse files
authored
visionbuf: fix incorrect length passed to munmap (#618)
Fix incorrect length passed to munmap
1 parent 622de23 commit 23cb05a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgq/visionipc/visionbuf_cl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ int VisionBuf::free() {
8686
if (err != 0) return err;
8787
}
8888

89-
err = munmap(this->addr, this->len);
89+
err = munmap(this->addr, this->mmap_len);
9090
if (err != 0) return err;
9191

9292
err = close(this->fd);

0 commit comments

Comments
 (0)