|
@@ -172,13 +172,15 @@ static int __devinit jsm_probe_one(struct pci_dev *pdev, const struct pci_device
|
|
jsm_uart_port_init here! */
|
|
jsm_uart_port_init here! */
|
|
dev_err(&pdev->dev, "memory allocation for flipbuf failed\n");
|
|
dev_err(&pdev->dev, "memory allocation for flipbuf failed\n");
|
|
rc = -ENOMEM;
|
|
rc = -ENOMEM;
|
|
- goto out_free_irq;
|
|
|
|
|
|
+ goto out_free_uart;
|
|
}
|
|
}
|
|
|
|
|
|
pci_set_drvdata(pdev, brd);
|
|
pci_set_drvdata(pdev, brd);
|
|
pci_save_state(pdev);
|
|
pci_save_state(pdev);
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
|
|
+ out_free_uart:
|
|
|
|
+ jsm_remove_uart_port(brd);
|
|
out_free_irq:
|
|
out_free_irq:
|
|
jsm_remove_uart_port(brd);
|
|
jsm_remove_uart_port(brd);
|
|
free_irq(brd->irq, brd);
|
|
free_irq(brd->irq, brd);
|