util/os_file: actually return the error read() gave us
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 16 May 2019 13:57:07 +0000 (14:57 +0100)
committerEric Engestrom <eric@engestrom.ch>
Sun, 9 Jun 2019 13:14:13 +0000 (13:14 +0000)
commit7e35f20d44321b20777020ad067d39116d142013
tree78f8e90d20d5b18374ba4fe3e2163d52d16a1a2f
parentf8f222ea364f5b6c3867ab643ff60e212302eb31
util/os_file: actually return the error read() gave us

Fixes: 316964709e21286c2af5 "util: add os_read_file() helper"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/util/os_file.c