[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190530025605.3698-1-eduval@amazon.com>
Date: Wed, 29 May 2019 19:56:03 -0700
From: Eduardo Valentin <eduval@...zon.com>
To: Guenter Roeck <linux@...ck-us.net>
CC: Eduardo Valentin <eduval@...zon.com>,
<linux-kernel@...r.kernel.org>, <linux-hwmon@...r.kernel.org>,
Jean Delvare <jdelvare@...e.com>
Subject: [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(-)
--
2.21.0
Powered by blists - more mailing lists