diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-03-13 12:57:15 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-14 11:34:46 -0700 |
commit | 5e89d81d9d6b8b1101b1482620b3f85968eb3b47 (patch) | |
tree | 984eb35e4d28c16b3904bb4b7f8ccdc3e862830f /.lgtm.yml | |
parent | 4ee4bbdb58d7dabae1be1fa6e62622caa5a4fcbc (diff) | |
download | subsurface-5e89d81d9d6b8b1101b1482620b3f85968eb3b47.tar.gz |
iostream: fix incorrect rfcomm error case when writing
This is the exact same case as the previous commit, just for the writing
side.
Once again, it's the subsurface rfcomm iostream code that can return
DC_STATUS_SUCCESS with a byte count of zero when something goes wrong
with the write.
And once again, our libdivecomputer iostream code didn't try to be
robust and protect itself from that case.
The fix is equivalent, although slightly simpler, since the write side
doesn't have the whole timeout issue.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '.lgtm.yml')
0 files changed, 0 insertions, 0 deletions