mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 03:47:43 +00:00
be2net: do not call napi_hash_del()
Calling napi_hash_del() before netif_napi_del() is dangerous if a synchronize_rcu() is not enforced before NAPI struct freeing. Lets leave this detail to core networking stack and feel more comfortable. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Sathya Perla <sathya.perla@broadcom.com> Cc: Ajit Khaparde <ajit.khaparde@broadcom.com> Cc: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Cc: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
963abe5c8a
commit
ea339343d6
@ -2813,7 +2813,6 @@ static void be_evt_queues_destroy(struct be_adapter *adapter)
|
||||
if (eqo->q.created) {
|
||||
be_eq_clean(eqo);
|
||||
be_cmd_q_destroy(adapter, &eqo->q, QTYPE_EQ);
|
||||
napi_hash_del(&eqo->napi);
|
||||
netif_napi_del(&eqo->napi);
|
||||
free_cpumask_var(eqo->affinity_mask);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user