Skip to content

hwmon: couple of fixes on HWMON_C_REGISTER_TZ

Eduardo Valentin linux-hwmon lkml 2 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesApplied
  2. v12 patches 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2hwmon: core: add thermal sensors only if dev->of_node is presentdrivers/hwmon/hwmon.c+1 -10 replies
2/2hwmon: core: fix potential memory leak in *hwmon_device_register*drivers/hwmon/hwmon.c+4 -44 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/2] hwmon: couple of fixes on HWMON_C_REGISTER_TZ

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(-)
Signature · 1 line
2.21.0