[Nouveau] [PATCH envytools] Don't try to use bios->pars if NULL (parse_pcir function has probably failed).
Christian Costa
titan.costa at gmail.com
Mon Aug 25 11:58:16 PDT 2014
---
nvbios/info.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/nvbios/info.c b/nvbios/info.c
index 87a33d8..6b8d209 100644
--- a/nvbios/info.c
+++ b/nvbios/info.c
@@ -119,6 +119,10 @@ int envy_bios_parse_bit_i (struct envy_bios *bios, struct envy_bios_bit_entry *b
bios->chipset_name = "G72";
break;
case 0x0573:
+ if (!bios->parts) {
+ ENVY_BIOS_ERR("Failed to detect board (bios->pars is NULL, parse_pcir function has probably failed)\n");
+ break;
+ }
/* yeah, ain't this one hilarious... */
if ((bios->parts[0].pcir_device & 0xfff0) == 0x7e0) {
bios->chipset = 0x63;
--
1.9.1
More information about the Nouveau
mailing list