diff options
author | Quentin Schulz <quentin.schulz@free-electrons.com> | 2016-07-26 09:47:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-07 08:34:56 +0200 |
commit | 34242c449ae7753772b68436efef5679a0726cf4 (patch) | |
tree | 7915afec7d41a54018a703968944b0150acce0fa /REPORTING-BUGS | |
parent | 6814e92876b85752813b6180ef2fe2250fe0b6ae (diff) | |
download | lwn-34242c449ae7753772b68436efef5679a0726cf4.tar.gz lwn-34242c449ae7753772b68436efef5679a0726cf4.zip |
hwmon: (iio_hwmon) fix memory leak in name attribute
commit 5d17d3b4bbf3becb89fd48b74340a50a39736f6d upstream.
The "name" variable's memory is now freed when the device is destructed
thanks to devm function.
Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Fixes: e0f8a24e0edfd ("staging:iio::hwmon interface client driver.")
Fixes: 61bb53bcbdd86 ("hwmon: (iio_hwmon) Add support for humidity sensors")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions