aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-pow.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2016-10-23 20:56:08 +0000
committerGuenter Roeck <[email protected]>2016-10-24 13:05:13 +0000
commit38d8ed65092ed22f52a95f397855cace0260e110 (patch)
tree59b5e01b4d1f349b736a8c0e4ce3cf8f3338cafd /lib/mpi/mpi-pow.c
parentLinux 4.9-rc2 (diff)
downloadkernel-38d8ed65092ed22f52a95f397855cace0260e110.tar.gz
kernel-38d8ed65092ed22f52a95f397855cace0260e110.zip
hwmon: (core) fix resource leak on devm_kcalloc failure
If dev_kcalloc fails to allocate hw_dev->groups then the current exit path is a direct return, causing a leak of resources such as hwdev and ida is not removed. Fix this by exiting via the free_hwmon exit path that performs the necessary resource cleanup. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions