
Current code directly passes the result of wlan_vdev_get_psoc(vdev) to wlan_objmgr_get_peer_by_mac, without null pointer checking, which can result in null pointer dereferencing. To fix this issue, add checking of the psoc pointer before passing, and add verification inside wlan_objmgr_get_peer_by_mac. Change-Id: Iaf0e2535c3a584db788ddc621745c66c296fe08f CRs-Fixed: 3277651