summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-07-06 14:20:17 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-10 13:48:43 +0200
commitd4e03146b00395e82b8db22a0c2e867c7224b7c9 (patch)
tree9481d06b574d17c459a34c40a19e0fee83445bf8 /tools/perf/scripts/python/stackcollapse.py
parent14442181d20490945f341644bb8257e334b01447 (diff)
staging: wfx: fix uninitialized variable bytes_done
The variable bytes_done is not initialized and hence the first FIFO size check on bytes_done may be breaking prematurely from the loop if bytes_done contains a large bogus uninitialized value. Fix this by initializing bytes_done to zero. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: a9408ad79ff3 ("staging: wfx: load the firmware faster") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20200706132017.487627-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions