Revision 392370e7aa387185349946d29a0e17b918e51ae6 authored by Krzysztof Mazur on 11 January 2013, 22:20:09 UTC, committed by Rafael J. Wysocki on 11 January 2013, 22:20:09 UTC
Commit bf4d1b5ddb78f86078ac6ae0415802d5f0c68f92 (cpuidle: support multiple drivers) changed the number of initialized state kobjects in cpuidle_add_state_sysfs() from device->state_count to drv->state_count, but left device->state_count in cpuidle_remove_state_sysfs(). The values of these two fields may be different, in which case a NULL pointer dereference may happen in cpuidle_remove_state_sysfs(), for example. Fix this problem by making cpuidle_add_state_sysfs() use device->state_count too (which restores the original behavior of it). [rjw: Changelog] Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 9931fac
File | Mode | Size |
---|---|---|
hidraw | ||
hw_breakpoint | ||
kdb | ||
kfifo | ||
kobject | ||
kprobes | ||
rpmsg | ||
seccomp | ||
trace_events | ||
tracepoints | ||
uhid | ||
Kconfig | -rw-r--r-- | 2.0 KB |
Makefile | -rw-r--r-- | 164 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...