mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-08 07:38:10 +00:00
ucc: Fix leaky error path
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>
This commit is contained in:
parent
5c9f580683
commit
8d5a05da82
1 changed files with 1 additions and 0 deletions
|
@ -1274,6 +1274,7 @@ static int ucc_uart_probe(struct of_device *ofdev,
|
||||||
if (!iprop) {
|
if (!iprop) {
|
||||||
iprop = of_get_property(np, "device-id", NULL);
|
iprop = of_get_property(np, "device-id", NULL);
|
||||||
if (!iprop) {
|
if (!iprop) {
|
||||||
|
kfree(qe_port);
|
||||||
dev_err(&ofdev->dev, "UCC is unspecified in "
|
dev_err(&ofdev->dev, "UCC is unspecified in "
|
||||||
"device tree\n");
|
"device tree\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue