commit | b17f201010342462913d8bf6980fc2bcd13071e0 | [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 | 11b1aaea3f952e0b39f142c40b83ff974365b21a | |
parent | eecbdd5c494509423d816d2644f6214a98ff0dea [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