]> git.baikalelectronics.ru Git - 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)
commit235e07d8b4c279e3a5c45af9c569a26e54583e7f
tree508e0eb7c55991312ce852034c1b3d5fdf418c93
parent098a3d9333ac451960529aaca52e29a3183ac78c
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