
In cm_roam_switch_to_init(), vdev returned from the api wlan_objmgr_get_vdev_by_id_from_psoc_debug() could be NULL. Vdev is dereferenced without NULL check. Validate vdev against NULL before dereference. Change-Id: I42ff6943e568f16b78290a3310a8999d26c15af9 CRs-Fixed: 2996914