[PATCH 5.18 134/339] octeontx2-af: fix error code in is_valid_offset()