mpc83xx: protect memcpy to bad address if a local-mac-address is missing from dt

protect memcpy to bad address if a local-mac-address is missing from dt
diff --git a/cpu/mpc83xx/cpu.c b/cpu/mpc83xx/cpu.c
index 15e04ba..f83981e 100644
--- a/cpu/mpc83xx/cpu.c
+++ b/cpu/mpc83xx/cpu.c
@@ -309,11 +309,13 @@
 
 #ifdef CONFIG_MPC83XX_TSEC1
 	p = ft_get_prop(blob, "/" OF_SOC "/ethernet@24000/local-mac-address", &len);
+	if (p != NULL)
 		memcpy(p, bd->bi_enetaddr, 6);
 #endif
 
 #ifdef CONFIG_MPC83XX_TSEC2
 	p = ft_get_prop(blob, "/" OF_SOC "/ethernet@25000/local-mac-address", &len);
+	if (p != NULL)
 		memcpy(p, bd->bi_enet1addr, 6);
 #endif
 }