aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-04-12 17:10:12 +0100
committerGreg Kroah-Hartman <[email protected]>2021-04-16 07:26:50 +0200
commitb4e964f84c1a44b0c63a5036efb24cf0f938db0a (patch)
tree6a923d987e6f265bcd966d5cc5e1cd608e6110af /tools/perf/scripts/python/exported-sql-viewer.py
parent39d2a7898d7fb61276ec766046940dda9080fd4b (diff)
habanalabs/gaudi: Fix uninitialized return code rc when read size is zero
In the case where size is zero the while loop never assigns rc and the return value is uninitialized. Fix this by initializing rc to zero. Fixes: 639781dcab82 ("habanalabs/gaudi: add debugfs to DMA from the device") Reviewed-by: Oded Gabbay <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Colin Ian King <[email protected]> Addresses-Coverity: ("Uninitialized scalar variable") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions