]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Fix tx push race condition.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 6 Jun 2016 06:37:14 +0000 (02:37 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 00:37:25 +0000 (17:37 -0700)
commit993d46d491a92c44080b098d35431b55061ce2c7
treeb370205b2b075724e1cbe2c863a91ac245a7de92
parentbfb0a96e5eadee1c28893fefd01ce6601eda0db9
bnxt_en: Fix tx push race condition.

Orabug: 23221795

Set the is_push flag in the software BD before the tx data is pushed to
the chip.  It is possible to get the tx interrupt as soon as the tx data
is pushed.  The tx handler will not handle the event properly if the
is_push flag is not set and it will crash.

Signed-off-by: Michael Chan <michael.chan@broadocm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit b9a8460a08a1e0150073cda3e7a0dd23cb888052)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c