diff options
| author | Dhanashri Atre <datre@qca.qualcomm.com> | 2015-03-10 16:36:41 -0700 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-03-13 12:16:12 +0530 |
| commit | 8bad530a6f2b03286fbe1ca61575e1cce60cb65f (patch) | |
| tree | b15f336a86877ae0525f069a1360f4229e2d962e | |
| parent | c41d88881b478ae57a329481c4221827c75905e7 (diff) | |
wlan: qca-cld2.0: Fix memory allocation size
Allocate the correct memory size for the hash element when creating
an entry for the rx buffer.
Change-Id: I4ee4216129511b8658f7d4acac3815d91af454fe
CRs-Fixed: 805889
| -rw-r--r-- | CORE/CLD_TXRX/HTT/htt_rx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CORE/CLD_TXRX/HTT/htt_rx.c b/CORE/CLD_TXRX/HTT/htt_rx.c index 4c4c8ccff97f..0928aec1f71e 100644 --- a/CORE/CLD_TXRX/HTT/htt_rx.c +++ b/CORE/CLD_TXRX/HTT/htt_rx.c @@ -2321,7 +2321,8 @@ htt_rx_hash_list_insert(struct htt_pdev_t *pdev, u_int32_t paddr, htt_list_remove(pdev->rx_ring.hash_table[i].freepool.next); } else { - hash_element = adf_os_mem_alloc(pdev->osdev, sizeof(hash_element)); + hash_element = adf_os_mem_alloc(pdev->osdev, + sizeof(struct htt_rx_hash_entry)); if (adf_os_unlikely(NULL == hash_element)) { HTT_ASSERT_ALWAYS(0); return 1; |
