From 3c1215dadc3a279925a17f55bdf0cb8863c41626 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 5 Jun 2019 14:28:00 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1647294 Reviewed-by: Nicolas Norvez Commit-Queue: Yicheng Li Tested-by: Yicheng Li --- common/mock/build.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'common/mock/build.mk') diff --git a/common/mock/build.mk b/common/mock/build.mk index 037718d3bb..e89c658968 100644 --- a/common/mock/build.mk +++ b/common/mock/build.mk @@ -4,4 +4,5 @@ # See common/mock/README.md for more information. +mock-$(HAS_MOCK_FPSENSOR) += fpsensor_mock.o mock-$(HAS_MOCK_ROLLBACK) += rollback_mock.o -- cgit v1.2.1