]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt: add a missing rcu synchronization
authorEric Dumazet <edumazet@google.com>
Wed, 16 Nov 2016 14:31:52 +0000 (06:31 -0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 18:08:03 +0000 (13:08 -0500)
commitc44a7122ad17023b3bb5497ab0f2966d4b9bc07c
tree19b1992a4fb3994d4f6d3808b1acb944a122911e
parent3df6c0a397ea422ee73a6d5919933517c7f924e6
bnxt: add a missing rcu synchronization

Orabug: 24567991

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>
(cherry picked from commit e5f6f564fd191d365fcd775c06a732a488205588)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c