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
@@ -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);