summaryrefslogtreecommitdiff
path: root/drivers/acpi/pci_root.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2013-03-25 10:50:06 (GMT)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-03-25 22:01:01 (GMT)
commit99aa36386351488d12ad5d302e096a77f22705d9 (patch)
tree50b45b5ca7eed2c95502b5b86e7a488fbb65bf00 /drivers/acpi/pci_root.c
parentf0c29583db51104a7bc223b1e9c88d818f24ba4d (diff)
downloadlinux-fsl-qoriq-99aa36386351488d12ad5d302e096a77f22705d9.tar.xz
ACPI / processor_thermal: avoid null pointer deference error
Fix a null pointer deference by acpi_driver_data() if device is null. We should only set pr and check this is OK after we are sure device is not null. Smatch analysis: drivers/acpi/processor_thermal.c:223 processor_get_max_state() warn: variable dereferenced before check 'device' (see line 221) drivers/acpi/processor_thermal.c:237 processor_get_cur_state() warn: variable dereferenced before check 'device' (see line 235) drivers/acpi/processor_thermal.c:255 processor_set_cur_state() warn: variable dereferenced before check 'device' (see line 251) Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/pci_root.c')
0 files changed, 0 insertions, 0 deletions