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:
chenguo
2018-10-25 13:54:58 +08:00
committed by nshrivas
orang tua fd85890917
melakukan 92af4bfb01

Melihat File

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