diff options
author | 2016-09-30 18:19:01 +0200 | |
---|---|---|
committer | 2016-09-30 23:16:35 +0530 | |
commit | 2cc40ee7ae30fa12c3ee3f18e6c0e81cced2cdcc (patch) | |
tree | 4c7b6b93bf9f3447c839d2266e8f97b2ce60628c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dmaengine: sun6i: Add support for Allwinner A83T (sun8i) variant (diff) | |
download | linux-dev-2cc40ee7ae30fa12c3ee3f18e6c0e81cced2cdcc.tar.xz linux-dev-2cc40ee7ae30fa12c3ee3f18e6c0e81cced2cdcc.zip |
dmaengine: edma: avoid uninitialized variable use
If edma_read_slot() gets an invalid argument, it does not set a result,
as found by "gcc -Wmaybe-uninitialized"
drivers/dma/edma.c: In function 'dma_ccerr_handler':
drivers/dma/edma.c:1499:21: error: 'p.a_b_cnt' may be used uninitialized in this function [-Werror=maybe-uninitialized]
drivers/dma/edma.c:1499:21: error: 'p.ccnt' may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (p.a_b_cnt == 0 && p.ccnt == 0) {
If we change the function to return an error in this case, we can handle
the failure more gracefully and treat this the same way as a null slot
that we already catch.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions