]> git.karo-electronics.de Git - karo-tx-linux.git/commit
agp/hp: fail gracefully if we don't find an IOC
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Thu, 7 Jan 2010 19:58:56 +0000 (12:58 -0700)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Jan 2010 03:35:55 +0000 (13:35 +1000)
commit7f32e2e05c240201b42b58dec1b4a072e2127792
tree4fa8e8454a838032674deda4b0fc84486057a061
parent5a7ac14ea395f596383f08bc6e0de102e9a8e6a5
agp/hp: fail gracefully if we don't find an IOC

Bail out if we don't find an enclosing IOC.  Previously, if we didn't
find one, we tried to set things up using garbage for the SBA/IOC register
address, which causes a crash.

This crash only happens if firmware supplies a defective ACPI namespace, so
it doesn't fix any problems in the field.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/agp/hp-agp.c