Skip to content

Commit

Permalink
ucc: Fix leaky error path
Browse files Browse the repository at this point in the history
Found by Daniel Marjamäki using cppcheck

Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Apr 6, 2009
1 parent 5c9f580 commit 8d5a05d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/serial/ucc_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,7 @@ static int ucc_uart_probe(struct of_device *ofdev,
if (!iprop) {
iprop = of_get_property(np, "device-id", NULL);
if (!iprop) {
kfree(qe_port);
dev_err(&ofdev->dev, "UCC is unspecified in "
"device tree\n");
return -EINVAL;
Expand Down

0 comments on commit 8d5a05d

Please sign in to comment.