mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-08 11:45:53 -05:00
qcacld-3.0: Fix incorrect valid pointer checking
There is an incorret valid pointer checking after memory allocation for monitor mode, which will cause net device up failure. Fix this incorrect checking. CRs-Fixed: 2338747 Change-Id: Ib1dd4d85ce7e7cace1167a082c103fb0300eb16a
This commit is contained in:
parent
fd85890917
commit
92af4bfb01
1 changed files with 1 additions and 1 deletions
|
|
@ -14027,7 +14027,7 @@ QDF_STATUS sme_create_mon_session(tHalHandle hal_handle, tSirMacAddr bss_id,
|
|||
struct sir_create_session *msg;
|
||||
|
||||
msg = qdf_mem_malloc(sizeof(*msg));
|
||||
if (!msg) {
|
||||
if (msg) {
|
||||
msg->type = eWNI_SME_MON_INIT_SESSION;
|
||||
msg->vdev_id = vdev_id;
|
||||
msg->msg_len = sizeof(*msg);
|
||||
|
|
|
|||
Loading…
Reference in a new issue