diff options
author | Todd Broch <tbroch@chromium.org> | 2014-05-08 16:42:46 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-05-09 22:04:12 +0000 |
commit | 479aa8b1bc46190fbef4fbcd2da514fe6a935004 (patch) | |
tree | 44619c0672fc39bab2d58cd5bd6037983eddd48c /common/hooks.c | |
parent | b5f3455a98ac2efad01228c01d25b05e9bddf52a (diff) | |
download | chrome-ec-stabilize-gnawty-5841.84.B.tar.gz |
ec_uartd: bugfix for buffer pointer on partial write to FD.stabilize-swanky-5841.55.Bstabilize-gnawty-5841.84.Bstabilize-5841.83.Bstabilize-5841.76.Brelease-R36-5841.B
Previously I neglected to increment the buffer pointer which would
allow double writing of same data and exclude tail if write didn't
complete in one call.
Also fixing bug with EAGAIN/EWOULDBLOCK to retry in those cases.
Previously we'd just have just failed for those errno values.
Signed-off-by: Todd Broch <tbroch@chromium.org>
BRANCH=none
BUG=chromium:371147
TEST=still compiles
Change-Id: I30dbe56b2a4c735c487464349786a9db430130a8
Reviewed-on: https://chromium-review.googlesource.com/199052
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'common/hooks.c')
0 files changed, 0 insertions, 0 deletions