dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Maxime Bizon 2010-01-30 18:42:56 +01:00 committed by Greg Kroah-Hartman
parent 599b714ce1
commit a6d07d14bb
1 changed files with 1 additions and 1 deletions

View 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);