Skip to content

Commit

Permalink
tty/8250 Add check for pci_ioremap_bar failure
Browse files Browse the repository at this point in the history
Add check for pci_ioremap_bar failure

Signed-off-by: Matt Schulte <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Matt Schulte authored and gregkh committed Nov 22, 2012
1 parent 14faa8c commit 13c3237
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/tty/serial/8250/8250_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 13c3237

Please sign in to comment.