summaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorAbhishek Singh <absingh@codeaurora.org>2019-06-06 16:08:43 +0530
committernshrivas <nshrivas@codeaurora.org>2019-06-06 09:44:05 -0700
commitf7a65f251d0ca1b88b4083464172357fd237d7dc (patch)
tree24f1fca70c838f2a5bb11c05a8ff7ff07db29566 /kernel/sysctl_binary.c
parent5bc4b3f544deca65e6f23a1b61f87f5b4ad9c75b (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
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions