Re: [PATCH net 6/6] bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt().

2019-04-26 Thread Nathan Chancellor
On Thu, Apr 25, 2019 at 10:31:55PM -0400, Michael Chan wrote: > 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. Thi

[PATCH net 6/6] bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt().

2019-04-25 Thread Michael Chan
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 ge