From: Eduardo Valentin <eduval@amazon.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Eduardo Valentin <eduval@amazon.com>,
<linux-kernel@vger.kernel.org>, <linux-hwmon@vger.kernel.org>,
Jean Delvare <jdelvare@suse.com>
Subject: [PATCHv2 0/2] hwmon: couple of fixes on HWMON_C_REGISTER_TZ
Date: Wed, 29 May 2019 19:56:03 -0700 [thread overview]
Message-ID: <20190530025605.3698-1-eduval@amazon.com> (raw)
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
next reply other threads:[~2019-05-30 2:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-30 2:56 Eduardo Valentin [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190530025605.3698-1-eduval@amazon.com \
--to=eduval@amazon.com \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome