mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
cd33b3e0da
commit
719ca81114
1 changed files with 1 additions and 1 deletions
|
@ -1099,7 +1099,7 @@ static struct sk_buff *bnxt_gro_func_5730x(struct bnxt_tpa_info *tpa_info,
|
|||
{
|
||||
#ifdef CONFIG_INET
|
||||
struct tcphdr *th;
|
||||
int len, nw_off, tcp_opt_len;
|
||||
int len, nw_off, tcp_opt_len = 0;
|
||||
|
||||
if (tcp_ts)
|
||||
tcp_opt_len = 12;
|
||||
|
|
Loading…
Reference in a new issue