mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
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:
parent
14faa8cce8
commit
13c3237dbc
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user