diff options
author | Michael Chan <michael.chan@broadcom.com> | 2019-04-26 04:31:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-27 23:00:19 +0200 |
commit | 0b397b17a4120cb80f7bf89eb30587b3dd9b0d1d (patch) | |
tree | a43edc4c1f99d667eae050f1deefdd555e9adc27 /lib/memweight.c | |
parent | bnxt_en: Fix statistics context reservation logic. (diff) | |
download | linux-0b397b17a4120cb80f7bf89eb30587b3dd9b0d1d.tar.xz linux-0b397b17a4120cb80f7bf89eb30587b3dd9b0d1d.zip |
bnxt_en: Fix uninitialized variable usage in bnxt_rx_pkt().
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: 6a8788f25625 ("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>
Diffstat (limited to 'lib/memweight.c')
0 files changed, 0 insertions, 0 deletions