Commit a6d07d14 authored by Maxime Bizon's avatar Maxime Bizon Committed by Greg Kroah-Hartman

serial: bcm63xx_uart: don't use kfree() on non kmalloced area.

Signed-off-by: default avatarMaxime Bizon <mbizon@freebox.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 599b714c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment