lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1468807244-32198-1-git-send-email-peter.chen@nxp.com>
Date:	Mon, 18 Jul 2016 10:00:44 +0800
From:	Peter Chen <peter.chen@....com>
To:	<ssantosh@...nel.org>
CC:	<linux-kernel@...r.kernel.org>, Peter Chen <peter.chen@....com>
Subject: [PATCH v2 1/1] memory: emif: add missing of_node_put after calling of_parse_phandle

of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.

Signed-off-by: Peter Chen <peter.chen@....com>
---

Changes for v2:
- %s/of_put_node/of_node_put

 drivers/memory/emif.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c
index 04644e7..262c881 100644
--- a/drivers/memory/emif.c
+++ b/drivers/memory/emif.c
@@ -1409,8 +1409,10 @@ static struct emif_data * __init_or_module of_get_memory_device_details(
 	goto out;
 
 error:
+	of_node_put(np_ddr);
 	return NULL;
 out:
+	of_node_put(np_ddr);
 	return emif;
 }
 
-- 
1.9.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ