提交 a6d07d14 编写于 作者: M Maxime Bizon 提交者: Greg Kroah-Hartman

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

Signed-off-by: NMaxime Bizon <mbizon@freebox.fr>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册