diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2013-03-16 06:32:16 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-20 12:58:53 -0700 |
commit | e97d818d630b09895d0f5efd879df08777273f11 (patch) | |
tree | b99f0179ccf4ba3ba562c71c180d66ef8d852cdd /Documentation/netlabel | |
parent | f77ce97ae2bc14cd3a340b3ce91008350fc3fa3f (diff) |
hwmon: (sht15) Fix memory leak if regulator_enable() fails
Commit 3e78080f8148 ('hwmon: (sht15) Check return value of
regulator_enable()') depends on the use of devm_kmalloc() for automatic
resource cleanup in the failure cases, which was introduced in 3.7. In
older stable branches, explicit cleanup is needed.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/netlabel')
0 files changed, 0 insertions, 0 deletions