drm/radeon/kms: Test rdev->bios centrally in combios_get_table_offset().
authorMichel Dänzer <daenzer@vmware.com>
Wed, 10 Feb 2010 10:05:11 +0000 (11:05 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Feb 2010 09:04:06 +0000 (19:04 +1000)
commit03047cdf724d8de9fbfd38b53d768c190225290f
treedf286d6801b34bb07ab81e61b91708263d80d82d
parent961fb597c17e2e4f55407d56b7211c188ab41eff
drm/radeon/kms: Test rdev->bios centrally in combios_get_table_offset().

It's happened time and time again (most recently with the support for EDID
hardcoded in the BIOS ROM) that new code didn't check for rdev->bios being
non-NULL before triggering dereferences of it. This would result in an
oops/panic on setups with no BIOS ROM. Hopefully this central test will be
more robust.

Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_combios.c