hwmon: couple of fixes on HWMON_C_REGISTER_TZ
Status from this message: Applied.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 4 repliesApplied
- v12 patches 4 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | hwmon: core: add thermal sensors only if dev->of_node is presentdrivers/ | +1 | 0 replies | |
| 2/2 | hwmon: core: fix potential memory leak in *hwmon_device_register*drivers/ | +4 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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