diff options
| author | Matthew Duggan <mduggan@google.com> | 2022-05-18 17:05:54 +0900 |
|---|---|---|
| committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | 2022-05-27 01:51:34 +0000 |
| commit | 84b7ca8d81c370556e0c5f519b347d433fb68162 (patch) | |
| tree | a5ba65cde3e2a7b5f2ce6bf02152845722d00c1d /code_coverage/empty_policy/code_coverage.arm64.policy | |
| parent | 2cf162748fef8fa077e582f9f25eef45884ce9b8 (diff) | |
storaged: Avoid divide-by-zero in performance measurement
The code previously assumed that write() took a non-zero number of clock
ticks. This is mostly true, but can't be guaranteed. Add a check to
avoid crashing if it's 0.
Bug: 233008287
Test: Compile
Change-Id: Idec0052f534dc4abb81a414ca76f6c11f4a4dded
(cherry picked from commit 5a02a9bab9db55ac02ab3eafd28e325233583a31)
Merged-In: Idec0052f534dc4abb81a414ca76f6c11f4a4dded
Diffstat (limited to 'code_coverage/empty_policy/code_coverage.arm64.policy')
0 files changed, 0 insertions, 0 deletions
