aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAlban Bedel <albeu@free.fr>2019-01-28 15:55:05 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-31 16:24:15 +0100
commit73e9dc4d568f050858e027655f0b0f6ddf65d6aa (patch)
tree724d610a5a4320376f7cbb526a89de17ec14c748 /tools/perf/scripts/python/bin
parentnvmem: core: Always reference the device returned by nvmem_device_get() (diff)
downloadlinux-73e9dc4d568f050858e027655f0b0f6ddf65d6aa.tar.gz
linux-73e9dc4d568f050858e027655f0b0f6ddf65d6aa.zip
nvmem: core: Fix device reference leak
__nvmem_device_get() make use of bus_find_device() to get the relevant device and this function increase the reference count of the device found, however this is not accounted for anywhere. Fix __nvmem_device_get() and __nvmem_device_put() to properly release this reference count. Signed-off-by: Alban Bedel <albeu@free.fr> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions