msm: mpm-of: Fix buffer overflow errors.
msm: mpm-of: Fix buffer overflow errors.

Fix accessing an out of bound index in an array during certain error
scenarios.

Change-Id: I624beda60316fc9ab40bdedc17ed9d993714a516
Signed-off-by: Mahesh Sivasubramanian <d742c8926136147b41811902e91ce4bd1f5cc0f6@codeaurora.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas