Skip to content

Commit

Permalink
visionbuf: fix incorrect length passed to munmap (#618)
Browse files Browse the repository at this point in the history
Fix incorrect length passed to munmap
  • Loading branch information
deanlee authored Aug 4, 2024
1 parent 622de23 commit 23cb05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msgq/visionipc/visionbuf_cl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int VisionBuf::free() {
if (err != 0) return err;
}

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

err = close(this->fd);
Expand Down

0 comments on commit 23cb05a

Please sign in to comment.