mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacld-3.0: Avoid memory leak in htt_h2t_dbg_stats_get()
Propagate from qcacld-2.0 to qcacld-3.0 Add htt_htc_pkt_free() in htt_h2t_dbg_stats_get() to avoid memory leak in the error case. Change-Id: Ie0cd4939706046370c7a0ce4053be1103637f769 CRs-Fixed: 979671
This commit is contained in:
parent
2fb1438bf3
commit
4f2dedec3f
1 changed files with 1 additions and 0 deletions
|
|
@ -748,6 +748,7 @@ htt_h2t_dbg_stats_get(struct htt_pdev_t *pdev,
|
|||
/* FIX THIS - add more details? */
|
||||
qdf_print("%#x %#x stats not supported\n",
|
||||
stats_type_upload_mask, stats_type_reset_mask);
|
||||
htt_htc_pkt_free(pdev, pkt);
|
||||
return -EINVAL; /* failure */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue