diff options
author | 2021-02-18 20:04:09 +0100 | |
---|---|---|
committer | 2021-03-16 22:58:54 +0530 | |
commit | 84b0aa2e0d91d7974c6cfcb3a1ce230e7366293e (patch) | |
tree | d7a3f19d6b2f181ee195b4d2eaa61352209a2c83 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | dmaengine: dw-edma: Revert fix scatter-gather address calculation (diff) | |
download | linux-rng-84b0aa2e0d91d7974c6cfcb3a1ce230e7366293e.tar.xz linux-rng-84b0aa2e0d91d7974c6cfcb3a1ce230e7366293e.zip |
dmaengine: dw-edma: Add pcim_iomap_table return check
Currently, is missing a null check on a pcim_iomap_table() return value
and this can lead to a null pointer dereference if the desired BAR
wasn't mapped previously.
Fix this by adding a null check and returning -ENOMEM.
Addresses-Coverity: ("Dereference null return")
Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Link: https://lore.kernel.org/r/bc5e6b8632c84660bb6dae454980e9419992ed14.1613674948.git.gustavo.pimentel@synopsys.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions