mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
qcacmn: Init remaining scheduler_msg on stack before posting msg
Initialize scheduler_msg on stack before posting using scheduler API such that un-used fields in message structure are initialized to 0. Change-Id: Ic62e745667c487fd8ea923c89abd6e1a76908bdf CRs-Fixed: 2034772
This commit is contained in:
parent
8bbc99066e
commit
5899b0a3da
2 changed files with 3 additions and 3 deletions
|
|
@ -187,7 +187,7 @@ QDF_STATUS
|
|||
tgt_scan_event_handler(struct wlan_objmgr_psoc *psoc,
|
||||
struct scan_event_info *event_info)
|
||||
{
|
||||
struct scheduler_msg msg = {0,};
|
||||
struct scheduler_msg msg = {0};
|
||||
struct scan_event *event = &event_info->event;
|
||||
uint8_t vdev_id = event->vdev_id;
|
||||
QDF_STATUS status;
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@ ucfg_scan_update_pno_config(struct pno_def_config *pno,
|
|||
QDF_STATUS
|
||||
ucfg_scan_start(struct scan_start_request *req)
|
||||
{
|
||||
struct scheduler_msg msg = {0, };
|
||||
struct scheduler_msg msg = {0};
|
||||
QDF_STATUS status;
|
||||
|
||||
if (!req || !req->vdev) {
|
||||
|
|
@ -369,7 +369,7 @@ ucfg_scan_start(struct scan_start_request *req)
|
|||
QDF_STATUS
|
||||
ucfg_scan_cancel(struct scan_cancel_request *req)
|
||||
{
|
||||
struct scheduler_msg msg = {0, };
|
||||
struct scheduler_msg msg = {0};
|
||||
QDF_STATUS status;
|
||||
|
||||
if (!req || !req->vdev) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue