summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-09-13 19:52:30 +0300
committerTakashi Iwai <tiwai@suse.de>2020-09-21 11:22:57 +0300
commit472eb39103e885f302fd8fd6eff104fcf5503f1b (patch)
tree57c6cf111a33c49dc147be8603fb5785ad9b621d /tools/perf/scripts/python/export-to-postgresql.py
parent8949b6660c3c7947a9b696c97eb85a32abe4a2d7 (diff)
downloadlinux-472eb39103e885f302fd8fd6eff104fcf5503f1b.tar.xz
ALSA: asihpi: fix iounmap in error handler
clang static analysis flags this problem hpioctl.c:513:7: warning: Branch condition evaluates to a garbage value if (pci.ap_mem_base[idx]) { ^~~~~~~~~~~~~~~~~~~~ If there is a failure in the middle of the memory space loop, only some of the memory spaces need to be cleaned up. At the error handler, idx holds the number of successful memory spaces mapped. So rework the handler loop to use the old idx. There is a second problem, the memory space loop conditionally iomaps()/sets the mem_base so it is necessay to initize pci. Fixes: 719f82d3987a ("ALSA: Add support of AudioScience ASI boards") Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20200913165230.17166-1-trix@redhat.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions