msm_shared: Fix a possible NULL pointer deference in the flash init.
msm_shared: Fix a possible NULL pointer deference in the flash init.

Assert when the flash cmdptr, cmd list, data and spare ptrs are NULL.

CRs-Fixed: 447612
Change-Id: I0ae6983e6d9a73ed5550c495b07f0fb8462fddf7

jsr-d10/android_bootable_bootloader_lk,idor/dk50-bootable_bootloader_lk,thornbirdblue/codeaurora_lk,chirayudesai/android_bootable_bootloader_lk,idor/dk50-bootable_bootloader_lk,jsr-d10/android_bootable_bootloader_lk,jsr-d10/android_bootable_bootloader_lk,mozilla-b2g/kernel_lk,t2m-foxfone/android_kernel_lk,detule/lk-g2-spr,efidroid/lk,Foxda-Tech/argo8-bootable-bootloader-lk,mozilla-b2g/fairphone2_kernel_lk,Redmi-dev/android_bootable_lk,thornbirdblue/codeaurora_lk,mozilla-b2g/fairphone2_kernel_lk,lg-devs/g2-bootloader,mozilla-b2g/kernel_lk,M1cha/lktris,efidroid/lk,mozilla-b2g/kernel_lk,t2m-foxfone/android_kernel_lk,thornbirdblue/codeaurora_lk,Foxda-Tech/argo8-bootable-bootloader-lk,t2m-foxfone/android_kernel_lk,lg-devs/g2-bootloader,M1cha/android_bootable_bootloader_lk,Redmi-dev/android_bootable_lk,mozilla-b2g/fairphone2_kernel_lk,t2m-foxfone/android_kernel_lk,idor/dk50-bootable_bootloader_lk,mozilla-b2g/kernel_lk,jbott/lk_gee,t2m-foxfone/kernel_lk,mozilla-b2g/fairphone2_kernel_lk,jbott/lk_gee,lg-devs/g2-bootloader,Redmi-dev/android_bootable_lk,jbott/lk_gee,M1cha/android_bootable_bootloader_lk,t2m-foxfone/kernel_lk,detule/lk-g2-spr,efidroid/lk,M1cha/android_bootable_bootloader_lk,Foxda-Tech/polaris-bootable-bootloader-lk,chirayudesai/android_bootable_bootloader_lk,t2m-foxfone/android_kernel_lk,Foxda-Tech/polaris-bootable-bootloader-lk,Foxda-Tech/polaris-bootable-bootloader-lk,M1cha/android_bootable_bootloader_lk,t2m-foxfone/kernel_lk,jsr-d10/android_bootable_bootloader_lk,lg-devs/g2-bootloader,t2m-foxfone/kernel_lk,Foxda-Tech/argo8-bootable-bootloader-lk,Redmi-dev/android_bootable_lk,CanarySolutions/little-kernel,M1cha/android_bootable_bootloader_lk,efidroid/lk,detule/lk-g2-spr,Foxda-Tech/polaris-bootable-bootloader-lk,jbott/lk_gee,jbott/lk_gee,M1cha/lktris,CanarySolutions/little-kernel,CanarySolutions/little-kernel,Foxda-Tech/argo8-bootable-bootloader-lk,chirayudesai/android_bootable_bootloader_lk,thornbirdblue/codeaurora_lk,detule/lk-g2-spr,mozilla-b2g/kernel_lk,lg-devs/g2-bootloader,M1cha/android_bootable_bootloader_lk,Foxda-Tech/polaris-bootable-bootloader-lk,efidroid/lk,chirayudesai/android_bootable_bootloader_lk,t2m-foxfone/kernel_lk,Foxda-Tech/argo8-bootable-bootloader-lk,M1cha/lktris,chirayudesai/android_bootable_bootloader_lk,M1cha/lktris,detule/lk-g2-spr,CanarySolutions/little-kernel,CanarySolutions/little-kernel,jsr-d10/android_bootable_bootloader_lk,thornbirdblue/codeaurora_lk,idor/dk50-bootable_bootloader_lk,M1cha/lktris,mozilla-b2g/fairphone2_kernel_lk,idor/dk50-bootable_bootloader_lk,Redmi-dev/android_bootable_lk