fix camerad not exiting cleanly (#2768)

Co-authored-by: Comma Device <device@comma.ai>
pull/16765/head
Adeeb Shihadeh 4 years ago committed by GitHub
parent 6a151dcd9c
commit a96857f1aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/common/visionbuf_ion.c

@ -131,7 +131,9 @@ void visionbuf_sync(const VisionBuf* buf, int dir) {
} }
void visionbuf_free(const VisionBuf* buf) { void visionbuf_free(const VisionBuf* buf) {
if (buf->buf_cl) {
CL_CHECK(clReleaseMemObject(buf->buf_cl)); CL_CHECK(clReleaseMemObject(buf->buf_cl));
}
munmap(buf->addr, buf->mmap_len); munmap(buf->addr, buf->mmap_len);
close(buf->fd); close(buf->fd);
struct ion_handle_data handle_data = { struct ion_handle_data handle_data = {

Loading…
Cancel
Save