]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit719ca8111402aa6157bd83a3c966d184db0d8956
tree8f70da6e4f7489c8bffb92c349b42c77d6c16c1f
parentcd33b3e0da43522ff8e8f2b2b71d3d08298512b0
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