platform: msm_shared: Validate DTB offset before accessing.

If the kernel image does not have appended DTB, the DTB
byte offset in the kernel image will contain some random
address 'A'. The current implementation does not validate
'A' & assumes its the address of appended DTB. Accessing
such address cause data abort. To avoid such issues check
if the DTB address read from DTB offset is correct.

CRs-Fixed: 480291
Change-Id: I1ec97a2e3ae1458ade5e16b6bc4af3b82dc2158c
2 files changed