drivers: soc: add size checks and update log messages

Add size checks to validate minimum size is met. Update log messages
to include only relevant information to ensure logs are accurate and
useful.

Change-Id: Idf76a7d964ec6989a0474d49895e54103f17938b
CRs-fixed: 1073129
Signed-off-by: Siena Richard <sienar@codeaurora.org>
[haggertk]: Backport to 3.4
CVE-2017-0451
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
1 file changed