]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: do not call napi_hash_del()
authorEric Dumazet <edumazet@google.com>
Wed, 16 Nov 2016 14:19:02 +0000 (06:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 22:06:51 +0000 (17:06 -0500)
commit57e4ba0f68568cde91a6a84d2b63f65b26bc7003
treee9f99669ffd7817c34d3bb0c77ec1a148f915414
parent22ebe9fbfbd19441bd1540acd17b5cad07ee6e61
cxgb4: 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: Hariprasad S <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c