[PATCH 6.1 030/223] octeontx2-af: Move validation of ptp pointer before its usage