Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b492efd7 authored by Sameer Thalappil's avatar Sameer Thalappil Committed by Kiet Lam
Browse files

wlan: Fix code inspection tool reported issues

Free allocated memory in multiple places.

Change-Id: I6e1c80e42386ef824c2437dce968508696995144
CRs-Fixed: 565561
parent 4585f0d4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -222,7 +222,7 @@ static ssize_t wcnss_patterngen_write(struct file *file,
    {
        VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
                   "%s: Not in Connected state!", __func__);

        vos_mem_free(cmd);
        return -EINVAL;
    }

@@ -289,7 +289,7 @@ static ssize_t wcnss_patterngen_write(struct file *file,

failure:
    vos_mem_free(cmd);
    return EINVAL;
    return -EINVAL;
}

static int wcnss_debugfs_open(struct inode *inode, struct file *file)
+1 −0
Original line number Diff line number Diff line
@@ -6162,6 +6162,7 @@ void wlan_hdd_set_mc_addr_list(hdd_adapter_t *pAdapter, v_U8_t set)

        }
        pAdapter->mc_addr_list.isFilterApplied = set ? TRUE : FALSE;
        vos_mem_free(pMulticastAddrs);
    }
    else
    {