serial: bcm63xx_uart: don't use kfree() on non kmalloced area.
authorMaxime Bizon <mbizon@freebox.fr>
Sat, 30 Jan 2010 17:42:56 +0000 (18:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:43:18 +0000 (14:43 -0800)
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/bcm63xx_uart.c

index 37ad0c4..f78ede8 100644 (file)
@@ -830,7 +830,7 @@ static int __devinit bcm_uart_probe(struct platform_device *pdev)
 
        ret = uart_add_one_port(&bcm_uart_driver, port);
        if (ret) {
-               kfree(port);
+               ports[pdev->id].membase = 0;
                return ret;
        }
        platform_set_drvdata(pdev, port);