diff options
author | Dan Carpenter <[email protected]> | 2020-09-21 15:52:12 +0300 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2020-09-23 09:40:33 -0700 |
commit | 18360b33a071e5883250fd1e04bfdeff8c3887a3 (patch) | |
tree | 0541f24f0faa4d16576dd2aaa58b2e205842216a /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace | |
parent | 6c094b31ea2ad773824362ba0fccb88d36f8d32d (diff) |
hwmon: (w83627ehf) Fix a resource leak in probe
Smatch has a new check for resource leaks which found a bug in probe:
drivers/hwmon/w83627ehf.c:2417 w83627ehf_probe()
warn: 'res->start' not released on lines: 2412.
We need to clean up if devm_hwmon_device_register_with_info() fails.
Fixes: 266cd5835947 ("hwmon: (w83627ehf) convert to with_info interface")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Link: https://lore.kernel.org/r/20200921125212.GA1128194@mwanda
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions