lib: cpus: aarch32: sanity check pointers before use

This is the AARCH32 update of patch [1].

 [1] 601e3ed209eb ("lib: cpus: sanity check pointers before use")

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: I43dbe00a5802a7e1c6f877e22d1c66ec8275c6fa
1 file changed