platform: msm_shared: Avoid buffer over read
platform: msm_shared: Avoid buffer over read

While finding the partition entry from look up table, make sure
that the length of the input partition matches before doing a memcmp,
to avoid buffer overreads.

Change-Id: I24b318deeb7fad9aa1ce11fd2bf3fdf6302cc892

Foxda-Tech/polaris-bootable-bootloader-lk,efidroid/lk,efidroid/lk,Foxda-Tech/polaris-bootable-bootloader-lk,Foxda-Tech/polaris-bootable-bootloader-lk,efidroid/lk,Foxda-Tech/polaris-bootable-bootloader-lk,Foxda-Tech/polaris-bootable-bootloader-lk,CanarySolutions/little-kernel,efidroid/lk,CanarySolutions/little-kernel,efidroid/lk,CanarySolutions/little-kernel,CanarySolutions/little-kernel,CanarySolutions/little-kernel