qcacld-3.0: fix memory overwritten in csr_roam_chk_lnk_swt_ch_ind

memory of sizeof(!roam_info) is not correct

Change-Id: Ida0c617815439de33b767b9eb8ed16869264854b
This commit is contained in:
Baowei Liu 2019-03-29 09:39:32 +08:00 • committed by nshrivas
commit e96d1033b4

View file

@ -11565,7 +11565,7 @@ csr_roam_chk_lnk_swt_ch_ind(struct mac_context *mac_ctx, tSirSmeRsp *msg_ptr)
}
}
roam_info = qdf_mem_malloc(sizeof(!roam_info));
roam_info = qdf_mem_malloc(sizeof(*roam_info));
if (!roam_info)
return;
roam_info->chan_info.chan_id = pSwitchChnInd->newChannelId;