Commit 13c3237d authored by Matt Schulte's avatar Matt Schulte Committed by Greg Kroah-Hartman

tty/8250 Add check for pci_ioremap_bar failure

Add check for pci_ioremap_bar failure
Signed-off-by: default avatarMatt Schulte <matts@commtech-fastcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 14faa8cc
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment