mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacld-3.0: Do not allocate LRO desc for flow greater than max range
HOST driver supports max LRO_DESC_POOL_SZ flows that can be submitted to LRO manager. Currently there is no check for flow greater than LRO_DESC_POOL_SZ and this is resulting in invalid de-reference of hdd_lro_desc_entry. Do not allocate LRO desc for flow greater than max range and use normal rx path for flow greater than LRO_DESC_POOL_SZ. Change-Id: I7f44c750afc78f5e044c9405dff30e729d3d28f3 CRs-Fixed: 1064624 (cherry picked from commit 2a8773e73b6c00edfcc621b4c1cba3bae677fb66)
This commit is contained in:
parent
8ff87d80f6
commit
8c54d6cf0c
1 changed files with 5 additions and 0 deletions
|
|
@ -256,6 +256,11 @@ static int hdd_lro_desc_find(hdd_adapter_t *adapter,
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
if (list_empty(&entry->lro_node)) {
|
||||
hdd_err("Reached max supported lro_desc range\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
list_del_init(&entry->lro_node);
|
||||
qdf_spin_unlock_bh(&free_pool.lro_pool_lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue