[PATCHv2 0/2] hwmon: couple of fixes on HWMON_C_REGISTER_TZ
From: Eduardo Valentin
Date: Wed May 29 2019 - 22:59:57 EST
Hello Guenter,
I found these bugs in the error path of hwmon_device_register().
One related to calling of-thermal when no dev->of_node is present.
And another in the error path handling of it.
Only difference from V1 is that I changed patch 2/2 to remove
the device_unregister() before jumping into the new label.
Eduardo Valentin (2):
hwmon: core: add thermal sensors only if dev->of_node is present
hwmon: core: fix potential memory leak in *hwmon_device_register*
drivers/hwmon/hwmon.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
--
2.21.0