projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c9f580
)
ucc: Fix leaky error path
author
Alan Cox
<alan@lxorguk.ukuu.org.uk>
Mon, 6 Apr 2009 16:33:48 +0000
(17:33 +0100)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Mon, 6 Apr 2009 21:36:32 +0000
(14:36 -0700)
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>
drivers/serial/ucc_uart.c
patch
|
blob
|
history
diff --git
a/drivers/serial/ucc_uart.c
b/drivers/serial/ucc_uart.c
index
315a933
..
7de66c0
100644
(file)
--- a/
drivers/serial/ucc_uart.c
+++ b/
drivers/serial/ucc_uart.c
@@
-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;