soc: fsl: dpio: fix dereference of pointer p before null check