diff --git a/core/hdd/src/wlan_hdd_lro.c b/core/hdd/src/wlan_hdd_lro.c index df0bf8df12..b1fe8f078d 100644 --- a/core/hdd/src/wlan_hdd_lro.c +++ b/core/hdd/src/wlan_hdd_lro.c @@ -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);