loader: use loader_open_device() to handle O_CLOEXEC
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 19 Feb 2019 15:30:39 +0000 (15:30 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 26 Feb 2019 11:07:23 +0000 (11:07 +0000)
commit02344fe80bcbca537d26b2101c7873f9793e3476
tree4c12269e184af72439e5aa02276fa28df9690af3
parentf0a7b463b5586972f4b7f5d9d84eb0564087ce3f
loader: use loader_open_device() to handle O_CLOEXEC

Some platforms lack O_CLOEXEC. The loader_open_device() handles those
appropriately, so use the helper.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/loader/loader.c