Fix setfield/getfield

Check for versions >= feature version, not equal

Bug: 13526708
Change-Id: Ie07f6334e6b7c5ca0d7f83ba00827a508e2c2963
This commit is contained in:
Paul Lawrence 2014-03-17 14:10:51 -07:00
parent f8e9569507
commit 8561b5c9f5

View file

@ -516,7 +516,8 @@ static int load_persistent_data(void)
return -1;
}
if ((crypt_ftr.major_version != 1) || (crypt_ftr.minor_version != 1)) {
if ((crypt_ftr.major_version < 1)
|| (crypt_ftr.major_version == 1 && crypt_ftr.minor_version < 1)) {
SLOGE("Crypt_ftr version doesn't support persistent data");
return -1;
}
@ -597,7 +598,8 @@ static int save_persistent_data(void)
return -1;
}
if ((crypt_ftr.major_version != 1) || (crypt_ftr.minor_version != 1)) {
if ((crypt_ftr.major_version < 1)
|| (crypt_ftr.major_version == 1 && crypt_ftr.minor_version < 1)) {
SLOGE("Crypt_ftr version doesn't support persistent data");
return -1;
}