[PATCH 5.15 101/247] octeontx2-af: fix error code in is_valid_offset()