Fix error in clocks leading to devices staying unlocked

Use BOOTTIME consistently!

Bug: 18246810
Change-Id: I630bf39f72ab69f971d2f772e8d4545ffe467b82
This commit is contained in:
Paul Lawrence 2014-11-11 12:47:03 -08:00
parent bb7d9afea9
commit ef2b5bea6b

View file

@ -3739,7 +3739,7 @@ int cryptfs_get_password_type(void)
char* cryptfs_get_password()
{
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
clock_gettime(CLOCK_BOOTTIME, &now);
if (now.tv_sec < password_expiry_time) {
return password;
} else {