John Keeping
e84b4a84e5
PM / QoS: Fix memory leak on resume_latency.notifiers
...
Since commit 2d984ad132 (PM / QoS: Introcuce latency tolerance device
PM QoS type) we reassign "c" to point at qos->latency_tolerance before
freeing c->notifiers, but the notifiers field of latency_tolerance is
never used.
Restore the original behaviour of freeing the notifiers pointer on
qos->resume_latency, which is used, and fix the following kmemleak
warning.
unreferenced object 0xed9dba00 (size 64):
comm "kworker/0:1", pid 36, jiffies 4294670128 (age 15202.983s)
hex dump (first 32 bytes):
00 00 00 00 04 ba 9d ed 04 ba 9d ed 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<c06f6084>] kmemleak_alloc+0x74/0xb8
[<c011c964>] kmem_cache_alloc_trace+0x170/0x25c
[<c035f448>] dev_pm_qos_constraints_allocate+0x3c/0xe4
[<c035f574>] __dev_pm_qos_add_request+0x84/0x1a0
[<c035f6cc>] dev_pm_qos_add_request+0x3c/0x54
[<c03c3fc4>] usb_hub_create_port_device+0x110/0x2b8
[<c03b2a60>] hub_probe+0xadc/0xc80
[<c03bb050>] usb_probe_interface+0x1b4/0x260
[<c035773c>] driver_probe_device+0x198/0x40c
[<c0357b14>] __device_attach_driver+0x8c/0x98
[<c0355bbc>] bus_for_each_drv+0x8c/0x9c
[<c0357494>] __device_attach+0x98/0x138
[<c0357c64>] device_initial_probe+0x14/0x18
[<c03569dc>] bus_probe_device+0x30/0x88
[<c0354c54>] device_add+0x430/0x554
[<c03b92d8>] usb_set_configuration+0x660/0x6fc
Fixes: 2d984ad132 (PM / QoS: Introcuce latency tolerance device PM QoS type)
Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2017-02-18 02:20:53 +01:00
arch
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-01-22 12:47:48 -08:00
block
blk-mq: Remove unused variable
2017-01-18 15:14:15 -07:00
certs
certs: Add a secondary system keyring that can be added to dynamically
2016-04-11 22:48:09 +01:00
crypto
crypto: testmgr - Use heap buffer for acomp test input
2016-12-27 17:32:11 +08:00
Documentation
spi: Fixes for v4.10
2017-01-20 12:25:11 -08:00
drivers
PM / QoS: Fix memory leak on resume_latency.notifiers
2017-02-18 02:20:53 +01:00
firmware
WHENCE: use https://linuxtv.org for LinuxTV URLs
2015-12-04 10:35:11 -02:00
fs
Three filesystem endianness fixes (one goes back to the 2.6 era, all
2017-01-20 12:15:48 -08:00
include
PM / QoS: Remove unneeded linux/miscdevice.h include
2017-01-27 11:26:58 +01:00
init
cgroup: move CONFIG_SOCK_CGROUP_DATA to init/Kconfig
2017-01-11 09:47:10 -05:00
ipc
ipc/sem.c: fix incorrect sem_lock pairing
2017-01-10 18:31:55 -08:00
kernel
Merge branch 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-01-22 12:45:47 -08:00
lib
Merge branch 'stable/for-linus-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb
2017-01-17 09:27:50 -08:00
mm
mm/hugetlb.c: fix reservation race when freeing surplus pages
2017-01-10 18:31:55 -08:00
net
Three filesystem endianness fixes (one goes back to the 2.6 era, all
2017-01-20 12:15:48 -08:00
samples
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-01-15 11:37:43 -08:00
scripts
gcc-plugins: update gcc-common.h for gcc-7
2017-01-03 12:08:59 -08:00
security
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
2016-12-24 11:46:01 -08:00
sound
ASoC: Fixes for v4.10
2017-01-11 19:49:27 +01:00
tools
virtio, vhost: fixes, cleanups
2017-01-22 12:40:09 -08:00
usr
kbuild: initramfs cleanup, set target from Kconfig
2017-01-05 09:40:16 -08:00
virt
KVM/ARM updates for 4.10-rc4
2017-01-17 15:04:59 +01:00
.cocciconfig
scripts: add Linux .cocciconfig for coccinelle
2016-07-22 12:13:39 +02:00
.get_maintainer.ignore
.gitattributes
.gitattributes: set git diff driver for C source code files
2016-10-07 18:46:30 -07:00
.gitignore
Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
2016-08-02 16:48:52 -04:00
.mailmap
mailmap: add codeaurora.org names for nameless email commits
2017-01-10 18:31:55 -08:00
COPYING
CREDITS
CREDITS: Remove outdated address information
2016-12-21 15:21:29 -08:00
Kbuild
scripts/gdb: provide linux constants
2016-05-23 17:04:14 -07:00
Kconfig
MAINTAINERS
ARM: SoC fixes
2017-01-19 16:40:03 -08:00
Makefile
Linux 4.10-rc5
2017-01-22 12:54:15 -08:00
README
README: add a new README file, pointing to the Documentation/
2016-10-24 08:12:35 -02:00