Files
linux/drivers/net/ethernet/broadcom
Michael Chan f1fd68e934 bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt().
[ Upstream commit 0b397b17a4 ]

In bnxt_rx_pkt(), if the driver encounters BD errors, it will recycle
the buffers and jump to the end where the uninitailized variable "len"
is referenced.  Fix it by adding a new jump label that will skip
the length update.  This is the most correct fix since the length
may not be valid when we get this type of error.

Fixes: 6a8788f256 ("bnxt_en: add support for software dynamic interrupt moderation")
Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-05 14:42:40 +02:00
..
2017-11-21 15:57:07 -08:00
2015-02-20 15:46:49 -05:00
2018-06-12 16:19:22 -07:00
2014-06-25 16:27:27 -07:00
2014-06-25 16:27:27 -07:00
2018-07-16 14:42:10 -07:00