Merge "platform: msm_shared: Fix null pointer and array index out of bounds issue"