diff options
author | Tom Hughes <tomhughes@chromium.org> | 2019-06-05 14:28:00 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-09-28 17:00:32 +0000 |
commit | 3c1215dadc3a279925a17f55bdf0cb8863c41626 (patch) | |
tree | 5eee8e879aed7545f7d860119d5867c5455f730f /fuzz | |
parent | 19b8749c0915278171acfd83495d5a73bb359385 (diff) | |
download | chrome-ec-3c1215dadc3a279925a17f55bdf0cb8863c41626.tar.gz |
fpsensor: Deinit the sensor before clearing the context
The opaque context contains sensor state that we can't nuke from
underneath the sensor library. Calling fp_sensor_deinit will release
this context and allow us to safely clear the context.
BRANCH=none
BUG=b:124773209
TEST="fpenroll" followed by "fpclear" in the FP console
TEST=On nocturne, in the UI, enroll finger, log out, and log in
=> then lock and unlock with finger
TEST=make buildall -j
Change-Id: I3e25bdf7eaaf99f3801547e11a6c524f924f4726
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1647294
Reviewed-by: Nicolas Norvez <norvez@chromium.org>
Commit-Queue: Yicheng Li <yichengli@chromium.org>
Tested-by: Yicheng Li <yichengli@chromium.org>
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/host_command_fuzz.mocklist | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fuzz/host_command_fuzz.mocklist b/fuzz/host_command_fuzz.mocklist index d84275532e..97b5e74c73 100644 --- a/fuzz/host_command_fuzz.mocklist +++ b/fuzz/host_command_fuzz.mocklist @@ -4,4 +4,5 @@ */ #define CONFIG_TEST_MOCK_LIST \ + MOCK(FPSENSOR) \ MOCK(ROLLBACK) |