summaryrefslogtreecommitdiff
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorMatt Schulte <matts@commtech-fastcom.com>2012-11-21 16:39:18 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-22 00:31:18 (GMT)
commit13c3237dbcc92fa7d17d3eb06de6477c4bd7fb5d (patch)
treebf3170bb73bc5b24360a1593f9bc5f1d80b997ba /drivers/tty/serial
parent14faa8cce88e18ed4daf5c3643f0faa4198863f9 (diff)
downloadlinux-13c3237dbcc92fa7d17d3eb06de6477c4bd7fb5d.tar.xz
tty/8250 Add check for pci_ioremap_bar failure
Add check for pci_ioremap_bar failure Signed-off-by: Matt Schulte <matts@commtech-fastcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/8250/8250_pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c
index a795bd9..26b9dc0 100644
--- a/drivers/tty/serial/8250/8250_pci.c
+++ b/drivers/tty/serial/8250/8250_pci.c
@@ -1172,6 +1172,8 @@ pci_xr17v35x_setup(struct serial_private *priv,
u8 __iomem *p;
p = pci_ioremap_bar(priv->dev, 0);
+ if (p == NULL)
+ return -ENOMEM;
port->port.flags |= UPF_EXAR_EFR;