Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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 <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5c9f5806
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;