mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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:
parent
003e4fbe23
commit
e96d1033b4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue