EDAC, altera: Add missing of_node_put()
authorHuang Zijiang <huang.zijiang@zte.com.cn>
Thu, 14 Feb 2019 06:39:07 +0000 (14:39 +0800)
committerBorislav Petkov <bp@suse.de>
Fri, 15 Feb 2019 11:02:47 +0000 (12:02 +0100)
commit7f736599d632dde93bda79cca54fd5dcfd937e06
treee8d651a46772e1afbc1a83ded17a19f0a8a2078b
parentcbfa482f7e2becbb774dd30117efac48819252f8
EDAC, altera: Add missing of_node_put()

The call to of_parse_phandle() returns a node pointer with refcount
incremented thus it must be explicitly decremented here after the last
usage.

Signed-off-by: Huang Zijiang <huang.zijiang@zte.com.cn>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Thor Thayer <thor.thayer@linux.intel.com>
Cc: James Morse <james.morse@arm.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: wang.yi59@zte.com.cn
Link: https://lkml.kernel.org/r/1550126347-27984-1-git-send-email-huang.zijiang@zte.com.cn
drivers/edac/altera_edac.c