commit | a460ae8a4641e6df6913c3f1ac778b5422c91337 | [log] [tgz] |
---|---|---|
author | Dmitry Grinberg <dmitrygr@google.com> | Tue Sep 04 23:42:43 2018 |
committer | Dmitry Grinberg <dmitrygr@google.com> | Tue Sep 04 23:47:43 2018 |
tree | 641ee59e502ea603df6f9b3074f732d9d4ee1e2a | |
parent | 55c892b497c3492865a74deecf90356f1740be3b [diff] |
gatt: do not dangle pointers When enqueueing a new todo item, make sure its "next" is NULL to avoid random traverals into neverland. This only causes issues if more than one GATT client at once operates and thus the queue depth > 1. Otherwise all goes well anyways since all items are by default zero-filled and queueing is not heavy. BUG=b:74813838 TEST=test app stable with 2 GATT clients at once Change-Id: I408b99207e00c2a5d2b1643493c8aa35da19c662