summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorKrzysztof Mazur <krzysiek@podlesie.net>2013-01-11 23:20:09 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-11 23:20:09 +0100
commit392370e7aa387185349946d29a0e17b918e51ae6 (patch)
tree289075fd7ac72313271792c9866380511ba5b24f /fs/nfsd
parent9931faca02c604c22335f5a935a501bb2ace6e20 (diff)
downloadop-kernel-dev-392370e7aa387185349946d29a0e17b918e51ae6.zip
op-kernel-dev-392370e7aa387185349946d29a0e17b918e51ae6.tar.gz
cpuidle: fix number of initialized/destroyed states
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>
Diffstat (limited to 'fs/nfsd')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud