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:
parent
599b714ce1
commit
a6d07d14bb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user