提交 13c3237d 编写于 作者: M Matt Schulte 提交者: Greg Kroah-Hartman

tty/8250 Add check for pci_ioremap_bar failure

Add check for pci_ioremap_bar failure
Signed-off-by: NMatt Schulte <matts@commtech-fastcom.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册