commit | b10d067e0cbeacc117dc404769d9019794672637 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Mon Feb 22 15:06:27 2021 -0800 |
committer | Yifan Hong <elsk@google.com> | Wed Mar 17 15:38:06 2021 -0700 |
tree | 589cf9116b336de0fe32f1dc7b3c9a5901cf8800 | |
parent | 60de969eff92ab29dbb6a617c01942246bf41619 [diff] |
fastboot driver: Fix ownership of fd in fastboot_buffer. fastboot_buffer owns the fd. Make ImageSource::Open() returns a unique_fd and pass ownership all the way down to the fastboot_buffer to avoid leaking fds. Test: none Change-Id: I9e7e176fc1da74c532a86d0fdba0113bdc81a166