OSDN Git Service

drivers/tty: add missing of_node_put()
authorYangtao Li <tiny.windzz@gmail.com>
Wed, 21 Nov 2018 15:22:54 +0000 (10:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 08:08:15 +0000 (09:08 +0100)
commit3c81ba9242b79adc8a2e569815ec3b0caa3e03bf
tree61a1c9e1a7e885d3cd8cae4b33f540541fce1835
parentee0a29ba574bde9861eee08d7b13a9cfbfcc8d1f
drivers/tty: add missing of_node_put()

of_find_node_by_path() acquires a reference to the node
returned by it and that reference needs to be dropped by its caller.
This place is not doing this, so fix it.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/suncore.c