]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix "uninitialized variable" bug in TPA code path.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 18 Jan 2017 03:07:19 +0000 (22:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2017 22:01:47 +0000 (17:01 -0500)
commitfcf9ea3bc0ac3f3f9436ef1f89019771fe588cc9
tree8f70da6e4f7489c8bffb92c349b42c77d6c16c1f
parentccd23a30244d86da748383889ac9fd7cc1618a1c
bnxt_en: Fix "uninitialized variable" bug in TPA code path.

In the TPA GRO code path, initialize the tcp_opt_len variable to 0 so
that it will be correct for packets without TCP timestamps.  The bug
caused the SKB fields to be incorrectly set up for packets without
TCP timestamps, leading to these packets being rejected by the stack.

Reported-by: Andy Gospodarek <andrew.gospodarek@broadocm.com>
Acked-by: Andy Gospodarek <andrew.gospodarek@broadocm.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c