summaryrefslogtreecommitdiff
path: root/drivers/acpi/processor_thermal.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2013-03-25 10:50:05 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-03-25 23:01:00 +0100
commitf0c29583db51104a7bc223b1e9c88d818f24ba4d (patch)
tree5bbf124ed11ab167be1f8b4137d7d3d992bcdaf7 /drivers/acpi/processor_thermal.c
parent994fa63c5b126df6e9f31ef4e09000e2e243234b (diff)
ACPI / fan: avoid null pointer deference error
Fix a null pointer deference by acpi_driver_data() if device is null. We should only set cdev and check this is OK after we are sure device is not null. Smatch analysis: drivers/acpi/fan.c:179 acpi_fan_remove() warn: variable dereferenced before check 'device' (see line 177) 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/processor_thermal.c')
0 files changed, 0 insertions, 0 deletions