linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/2] hwmon: couple of fixes on HWMON_C_REGISTER_TZ
@ 2019-05-30  2:56 Eduardo Valentin
  2019-05-30  2:56 ` [PATCHv2 1/2] hwmon: core: add thermal sensors only if dev->of_node is present Eduardo Valentin
  2019-05-30  2:56 ` [PATCHv2 2/2] hwmon: core: fix potential memory leak in *hwmon_device_register* Eduardo Valentin
  0 siblings, 2 replies; 7+ messages in thread
From: Eduardo Valentin @ 2019-05-30  2:56 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Eduardo Valentin, linux-kernel, linux-hwmon, Jean Delvare

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-06-06 16:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-30  2:56 [PATCHv2 0/2] hwmon: couple of fixes on HWMON_C_REGISTER_TZ Eduardo Valentin
2019-05-30  2:56 ` [PATCHv2 1/2] hwmon: core: add thermal sensors only if dev->of_node is present Eduardo Valentin
2019-05-30  2:56 ` [PATCHv2 2/2] hwmon: core: fix potential memory leak in *hwmon_device_register* Eduardo Valentin
2019-06-05 20:29   ` Guenter Roeck
2019-06-05 20:38   ` Guenter Roeck
2019-06-06 14:35     ` Eduardo Valentin
2019-06-06 16:55       ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).