summaryrefslogtreecommitdiffstats
path: root/drivers/serial/bcm63xx_uart.c
diff options
context:
space:
mode:
authorMaxime Bizon <mbizon@freebox.fr>2010-01-30 18:42:56 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-02 23:43:18 +0100
commita6d07d14bb5cc83237fb259014c1787ffdb83ccb (patch)
tree5949ed52c473c404149bcbe78ef6090d11a84622 /drivers/serial/bcm63xx_uart.c
parentserial: bfin_5xx: pull in linux/io.h for ioremap prototypes (diff)
downloadlinux-a6d07d14bb5cc83237fb259014c1787ffdb83ccb.tar.xz
linux-a6d07d14bb5cc83237fb259014c1787ffdb83ccb.zip
serial: bcm63xx_uart: don't use kfree() on non kmalloced area.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial/bcm63xx_uart.c')
-rw-r--r--drivers/serial/bcm63xx_uart.c2
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)
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);