eeprom: idt_89hpesx: Put fwnode in matching case during ->probe()
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Mon, 7 Jun 2021 22:17:55 +0000 (01:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:44 +0000 (16:56 +0200)
commitfc8ab06001721adffeab289d29838a0dfd0811c2
tree67d54c7db5aaec27d01ca8c6d89e4a87e846ed6a
parentc7188d19989b2349943e92d3953be50f1032189d
eeprom: idt_89hpesx: Put fwnode in matching case during ->probe()

[ Upstream commit 3f6ee1c095156a74ab2df605af13020f1ce3e600 ]

device_get_next_child_node() bumps a reference counting of a returned variable.
We have to balance it whenever we return to the caller.

Fixes: db15d73e5f0e ("eeprom: idt_89hpesx: Support both ACPI and OF probing")
Cc: Huy Duong <qhuyduong@hotmail.com>
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210607221757.81465-1-andy.shevchenko@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/eeprom/idt_89hpesx.c