diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2012-07-20 07:29:16 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-07-24 07:37:37 +0200 |
commit | f197ac13f6eeb351b31250b9ab7d0da17434ea36 (patch) | |
tree | a8477613b7c7ed7529d9da65a62bef223a6a17b7 /drivers/thermal/spear_thermal.c | |
parent | Linux 3.5 (diff) | |
download | linux-f197ac13f6eeb351b31250b9ab7d0da17434ea36.tar.xz linux-f197ac13f6eeb351b31250b9ab7d0da17434ea36.zip |
ACPI/AC: prevent OOPS on some boxes due to missing check power_supply_register() return value check
In the ac.c, power_supply_register()'s return value is not checked.
As a result, the driver's add() ops may return success
even though the device failed to initialize.
For example, some BIOS may describe two ACADs in the same DSDT.
The second ACAD device will fail to register,
but ACPI driver's add() ops returns sucessfully.
The ACPI device will receive ACPI notification and cause OOPS.
https://bugzilla.redhat.com/show_bug.cgi?id=772730
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/thermal/spear_thermal.c')
0 files changed, 0 insertions, 0 deletions