]> git.baikalelectronics.ru Git - kernel.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>
Mon, 11 Jan 2010 05:09:02 +0000 (15:09 +1000)
commitc77993b631b572ed456da70313fe54ab7cc9f7cf
treee530148d5def57faaef318e6d73572c221256fcc
parent1efb5d9a74f37cc3a845d11cf95e76fb471d2ead
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