BpfMap: readValue() - pass key by reference

clear oversight...

Test: TreeHugger
Flag: EXEMPT mainline
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I1455aba2c41e91840afe7bdcc128a709e2ecf7d5
This commit is contained in:
Maciej Żenczykowski 2025-08-11 15:10:34 -07:00
commit 43b0ef8235

View file

@ -125,7 +125,7 @@ class BpfMapRO {
return nextKey;
}
Result<Value> readValue(const Key key) const {
Result<Value> readValue(const Key& key) const {
Value value;
if (findMapEntry(mMapFd, &key, &value)) {
return ErrnoErrorf("BpfMap::readValue() failed");