8315206: RISC-V: hwprobe query is_set return wrong value

Backport-of: 876a725af9
This commit is contained in:
Robbin Ehn
2023-09-06 13:11:35 +00:00
committed by Vitaly Provodin
parent 34d982cc74
commit a5ec8ea70a

View File

@@ -100,7 +100,7 @@ static bool is_valid(int64_t key) {
static bool is_set(int64_t key, uint64_t value_mask) {
if (is_valid(key)) {
return query[key].value & value_mask != 0;
return (query[key].value & value_mask) != 0;
}
return false;
}