diff options
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/bcm63xx_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/bcm63xx_uart.c b/drivers/serial/bcm63xx_uart.c index 37ad0c449937..f78ede824104 100644 --- a/drivers/serial/bcm63xx_uart.c +++ b/drivers/serial/bcm63xx_uart.c | |||
@@ -830,7 +830,7 @@ static int __devinit bcm_uart_probe(struct platform_device *pdev) | |||
830 | 830 | ||
831 | ret = uart_add_one_port(&bcm_uart_driver, port); | 831 | ret = uart_add_one_port(&bcm_uart_driver, port); |
832 | if (ret) { | 832 | if (ret) { |
833 | kfree(port); | 833 | ports[pdev->id].membase = 0; |
834 | return ret; | 834 | return ret; |
835 | } | 835 | } |
836 | platform_set_drvdata(pdev, port); | 836 | platform_set_drvdata(pdev, port); |