2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 19:53:59 +08:00
linux-next/drivers/acpi/acpica
Rafael J. Wysocki 2d55951368 ACPI / ACPICA: Avoid crashing if _PRW is defined for the root object
Some ACPI BIOSes define _PRW for the root object which causes
acpi_setup_gpe_for_wake() to crash when trying to dereference the
bogus device_node pointer.  Avoid the crash by checking if
wake_device is not the root object before attempting to set up the
"implicit notify" mechanism for it.

The problem was introduced by commit bba63a296f
(ACPICA: Implicit notify support) that added the wake_device argument
to acpi_setup_gpe_for_wake().

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2011-02-12 01:39:15 +01:00
..
accommon.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acconfig.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acdebug.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acdispat.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acevents.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acglobal.h Merge branch 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2011-01-20 16:28:34 -08:00
achware.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acinterp.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
aclocal.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acmacros.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acnamesp.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acobject.h Merge branch 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2011-01-20 16:28:34 -08:00
acopcode.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acparser.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acpredef.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acresrc.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acstruct.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
actables.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
acutils.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
amlcode.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
amlresrc.h ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
dsfield.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
dsinit.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
dsmethod.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
dsmthdat.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
dsobject.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
dsopcode.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
dsutils.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
dswexec.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
dswload.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
dswscope.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
dswstate.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
evevent.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
evgpe.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
evgpeblk.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
evgpeinit.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
evgpeutil.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
evmisc.c Merge branch 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2011-01-20 16:28:34 -08:00
evregion.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
evrgnini.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
evsci.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
evxface.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
evxfevnt.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
evxfgpe.c ACPI / ACPICA: Avoid crashing if _PRW is defined for the root object 2011-02-12 01:39:15 +01:00
evxfregn.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exconfig.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exconvrt.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
excreate.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exdebug.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exdump.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exfield.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exfldio.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exmisc.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exmutex.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exnames.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exoparg1.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exoparg2.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exoparg3.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exoparg6.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exprep.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exregion.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exresnte.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exresolv.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exresop.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exstore.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exstoren.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exstorob.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exsystem.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
exutils.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
hwacpi.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
hwgpe.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
hwpci.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
hwregs.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
hwsleep.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
hwtimer.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
hwvalid.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
hwxface.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
Makefile ACPICA: Move GPE functions to new file evxfgpe.c 2011-01-12 04:20:41 -05:00
nsaccess.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsalloc.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsdump.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsdumpdv.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nseval.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsinit.c Merge branch 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2011-01-20 16:28:34 -08:00
nsload.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsnames.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsobject.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsparse.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nspredef.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsrepair2.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsrepair.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nssearch.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsutils.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nswalk.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsxfeval.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsxfname.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
nsxfobj.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
psargs.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
psloop.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
psopcode.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
psparse.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
psscope.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
pstree.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
psutils.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
pswalk.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
psxface.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rsaddr.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rscalc.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rscreate.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rsdump.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rsinfo.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rsio.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rsirq.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rslist.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rsmemory.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rsmisc.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rsutils.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
rsxface.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
tbfadt.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
tbfind.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
tbinstal.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
tbutils.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
tbxface.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
tbxfroot.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utalloc.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utcopy.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utdebug.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utdelete.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
uteval.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utglobal.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utids.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utinit.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utlock.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utmath.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utmisc.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utmutex.c Merge branch 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2011-01-20 16:28:34 -08:00
utobject.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utosi.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utresrc.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utstate.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utxface.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00
utxferror.c ACPICA: Update all ACPICA copyrights and signons to 2011 2011-01-18 23:48:03 -05:00