[PATCH 5.17 117/298] octeontx2-af: fix error code in is_valid_offset()