diff options
author | Quentin Schulz <quentin.schulz@free-electrons.com> | 2016-07-26 10:47:09 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2016-08-01 01:02:52 +0300 |
commit | 5d17d3b4bbf3becb89fd48b74340a50a39736f6d (patch) | |
tree | 879614286b3ba1b112f2bd246ab79d0ade44fc28 /security | |
parent | 4c8702b3cd43322ca97fdc7f647e273a7388a0c6 (diff) | |
download | linux-5d17d3b4bbf3becb89fd48b74340a50a39736f6d.tar.xz |
hwmon: (iio_hwmon) fix memory leak in name attribute
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions