Skip to contentSkip to conversation

drm/radeon/kms: Fix crash getting TV info with no BIOS.

PATCH RESEND New Michel Dänzer 1 participant 1 message Jan 11, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 drm/radeon/kms: Fix crash getting TV info with no BIOS.

From: Michel Dänzer <[email protected]>

---
Looks like this simple fix got lost last time...

 drivers/gpu/drm/radeon/radeon_combios.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_combios.c +3 -0
index 58f3426..fa91e42 100644
@@ -673,6 +673,9 @@ radeon_combios_get_tv_info(struct radeon_device *rdev)
 	uint16_t tv_info;
 	enum radeon_tv_std tv_std = TV_STD_NTSC;
 
+	if (rdev->bios == NULL)
+		return tv_std;
+
 	tv_info = combios_get_table_offset(dev, COMBIOS_TV_INFO_TABLE);
 	if (tv_info) {
 		if (RBIOS8(tv_info + 6) == 'T') {
Signature · 14 lines
1.6.5.7


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel