summaryrefslogtreecommitdiff
path: root/drivers/fpga/dfl-fme-pr.c
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2018-11-07 20:51:45 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-11 23:58:27 +0300
commit187fade88ca0ff2df9d360ca751d948d73db7095 (patch)
treea1fdcf21de6dc72cb7f1e0a68ead114f5be76702 /drivers/fpga/dfl-fme-pr.c
parent1e5106031f298af4ad29c2eb866780d9a21e9ab4 (diff)
downloadlinux-187fade88ca0ff2df9d360ca751d948d73db7095.tar.xz
fpga: altera-cvp: fix 'bad IO access' on x86_64
If mapping the CvP BAR fails, we still can configure the FPGA via PCI config space access. In this case the iomap pointer is NULL. On x86_64, passing NULL address to pci_iounmap() generates "Bad IO access at port 0x0" output with stack call trace. Fix it. Signed-off-by: Anatolij Gustschin <agust@denx.de> Acked-by: Alan Tull <atull@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/dfl-fme-pr.c')
0 files changed, 0 insertions, 0 deletions