Commit 8d5a05da authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

ucc: Fix leaky error path

Found by Daniel Marjamäki using cppcheck

Signed-off-by: default avatarAlan Cox <>
Signed-off-by: default avatarLinus Torvalds <>
parent 5c9f5806
......@@ -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) {
dev_err(&ofdev->dev, "UCC is unspecified in "
"device tree\n");
return -EINVAL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment