diff options
author | Veerendranath Jakkam <quic_vjakkam@quicinc.com> | 2020-04-14 22:04:39 +0530 |
---|---|---|
committer | Sunil Ravi <sunilravi@google.com> | 2020-04-15 21:53:48 -0700 |
commit | 25b3a6f0a42e9f3c7f793dfd06ad431106e078b7 (patch) | |
tree | be7406b5ef9a9ebbf01e74f913c79a9a4f8083a5 /identity/support/src/cppbor_parse.cpp | |
parent | cedd3f387b49d3060a4c8cbc72c41a134638d19e (diff) |
Synchronize on_ring_buffer_data_callback and writeRingbufferFiles
on_ring_buffer_data_callback callback is invoked on getting the
corresponding driver/firmware ringbuffer logs. This callback further
stores the ringbuffer data locally in cur_buffer. While the data is
getting updated through this callback, writeRingbufferFilesInternal
can get triggered from a different context which accesses the same buffer
-cur_buffer.
Synchronization is missing between these two contexts while accessing the
buffer and this commit attempts the same.
Bug: 153970986
Test: Manual - collect the bugreport and check the ring buffer logs.
Change-Id: Id99a517f4d72872b84b48c3df75dd29743f3e9b2
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions