commit | 8ea061bcdd15588603ed4dbd720e493ec1d62a89 | [log] [tgz] |
---|---|---|
author | Bryan Mawhinney <bryanmawhinney@google.com> | Sun Dec 05 17:21:07 2010 +0000 |
committer | Bryan Mawhinney <bryanmawhinney@google.com> | Sun Dec 05 17:21:07 2010 +0000 |
tree | ad9453eb918b907e328a25b4bb578aa0601c6811 | |
parent | bcdf40b42fb8a4313461233d2db1eb959e2c6a70 [diff] |
Prevent message overrun in LocklessCommandFifo. The previous logic in makeSpace and makeSpaceNonBlocking was incorrect (probably a typo). We shouldn't loop if looping will overwrite unread messages, or if we would make the buffer appear empty (mPut == mGet). Change-Id: Iabc82ca94a585a7041069db97cbed7709f2d388f