diff options
author | Gustavo Pimentel <Gustavo.Pimentel@synopsys.com> | 2021-02-18 20:04:09 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-03-16 22:58:54 +0530 |
commit | 84b0aa2e0d91d7974c6cfcb3a1ce230e7366293e (patch) | |
tree | d7a3f19d6b2f181ee195b4d2eaa61352209a2c83 /drivers/ide/serverworks.c | |
parent | b671d098a97f59d6056b34e0a759ec976325c216 (diff) | |
download | linux-84b0aa2e0d91d7974c6cfcb3a1ce230e7366293e.tar.bz2 |
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 'drivers/ide/serverworks.c')
0 files changed, 0 insertions, 0 deletions