Skip to content

Commit

Permalink
serial: bcm63xx_uart: don't use kfree() on non kmalloced area.
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Bizon <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
mbizonfreebox authored and gregkh committed Mar 2, 2010
1 parent 599b714 commit a6d07d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/bcm63xx_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a6d07d1

Please sign in to comment.