bnxt: add a missing rcu synchronization
authorEric Dumazet <edumazet@google.com>
Wed, 16 Nov 2016 14:31:52 +0000 (06:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2016 04:30:43 +0000 (23:30 -0500)
commite5f6f564fd191d365fcd775c06a732a488205588
tree28db9d98d66cf6f39f59230d93a58311d77d9d0b
parente47112d9d6009bf6b7438cedc0270316d6b0370d
bnxt: add a missing rcu synchronization

Add a missing synchronize_net() call to avoid potential use after free,
since we explicitly call napi_hash_del() to factorize the RCU grace
period.

Fixes: c0c050c58d84 ("bnxt_en: New Broadcom ethernet driver.")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Michael Chan <michael.chan@broadcom.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c