Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visionbuf: refactor ion_fd to struct IonFileHandle #505

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Jul 27, 2023

remove ion_init(), refactor ion_fd to struct IonFileHandle to fix 2 issues:

  1. ion_init() is not thread safe, ion_fd may be opened multiple times. ( allocate can be called in multiple threads, e.g. v4l_encoder), This may cause the client to use a different ion_fd for subsequent ioctl than the one used for ION_IOC_ALLOC
  2. ion_fd not closed on exit.

@adeebshihadeh adeebshihadeh merged commit e7c42fd into commaai:master Aug 22, 2023
8 checks passed
@deanlee deanlee deleted the visionbuf_improve_iconfd branch August 23, 2023 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants