dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Matt Schulte 2012-11-21 10:39:18 -06:00 committed by Greg Kroah-Hartman
parent 14faa8cce8
commit 13c3237dbc
1 changed files with 2 additions and 0 deletions

View File

@ -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;