commit | 4346f3c5ec7bc9a5d6cced81c0d7584d69d7397a | [log] [tgz] |
---|---|---|
author | Philip P. Moltmann <moltmann@google.com> | Wed Sep 14 15:40:50 2016 -0700 |
committer | Philip P. Moltmann <moltmann@google.com> | Wed Sep 14 22:44:50 2016 +0000 |
tree | 6e17528636b8acea5c7719be567d868c9b38cfb3 | |
parent | 0bef88f3c708db0c3ba250a3accf2a14303351b2 [diff] |
Set buffer before UsbRequest is queued Otherwise a second thread might dequeue() it in between native_queue_direct and mBuffer = buffer. If that happens the dequeue operation does mBuffer.isDirect which triggers a NPE. Fixes: 30914003 Change-Id: I3ca3b72db8f53a14be1c5f0e37f8924eba44b9bc