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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux