summaryrefslogtreecommitdiffstats
path: root/minui/graphics_adf.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-03-02 01:14:07 +0100
committerandroid-build-merger <android-build-merger@google.com>2019-03-02 01:14:07 +0100
commit4e95d7503ede20d6149dc27c5defb9d86d3bfa19 (patch)
treea9fda0ad47571634be7129c40cdde52ef33a15e0 /minui/graphics_adf.cpp
parentMerge "Use android::base::Pipe." (diff)
parentMerge "Use O_CLOEXEC at a few places." (diff)
downloadandroid_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar
android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar.gz
android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar.bz2
android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar.lz
android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar.xz
android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.tar.zst
android_bootable_recovery-4e95d7503ede20d6149dc27c5defb9d86d3bfa19.zip
Diffstat (limited to 'minui/graphics_adf.cpp')
-rw-r--r--minui/graphics_adf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/graphics_adf.cpp b/minui/graphics_adf.cpp
index 9eea497d6..10cd60709 100644
--- a/minui/graphics_adf.cpp
+++ b/minui/graphics_adf.cpp
@@ -101,7 +101,7 @@ int MinuiBackendAdf::DeviceInit(adf_device* dev) {
err = adf_device_attach(dev, eng_id, intf_id);
if (err < 0 && err != -EALREADY) return err;
- intf_fd = adf_interface_open(dev, intf_id, O_RDWR);
+ intf_fd = adf_interface_open(dev, intf_id, O_RDWR | O_CLOEXEC);
if (intf_fd < 0) return intf_fd;
err = InterfaceInit();