]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jun 2016 23:02:03 +0000 (16:02 -0700)
commitb9a8460a08a1e0150073cda3e7a0dd23cb888052
tree508e0eb7c55991312ce852034c1b3d5fdf418c93
parentfa54cc70ed2eddd96773ffdf4d96d23ea7483e56
bnxt_en: Fix tx push race condition.

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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c