commit | 0536c1757117376ea139bce2232f76d3f632316a | [log] [tgz] |
---|---|---|
author | Jeff Johnson <jjohnson@codeaurora.org> | Sun Dec 23 10:20:06 2018 -0800 |
committer | nshrivas <nshrivas@codeaurora.org> | Wed Dec 26 22:45:48 2018 -0800 |
tree | 28ac611b40eab69d3ce2f8e8e9414ac789b645e6 | |
parent | 72f4849b0ead1d29a6d7effb3049312f64df2566 [diff] |
qcacld-3.0: Avoid memory leak when adding a TX pattern In wma_process_add_periodic_tx_ptrn_ind() the buffer allocated for the WMI parameter will be leaked if wma_find_vdev_by_addr() fails. To avoid this, reorder the operations so that the buffer is not allocated unless wma_find_vdev_by_addr() is successful. Change-Id: Idbd180dcc1bcae5b71f6a56adcfa3b4a7e2595da CRs-Fixed: 2371905