[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#415620: Wrong driver for Radeon card?



Found it!  If the class in pci*lst is "unknown", it uses the class
from the PCI configuration space.  Your device is class 0x0480 but
it is computed incorrectly as 0x0380, due to signed arithmetic.
This patch fixes the bug.

-jim

--- discover1-1.7.19.orig/lib/pci.c     2007-03-22 12:29:05.000000000 -0400
+++ discover1-1.7.19/lib/pci.c  2007-03-22 12:29:17.000000000 -0400
@@ -35,7 +35,7 @@
   struct cards_lst *defaultEntry = (struct cards_lst *)NULL;
   int fd;
   int found = 0;
-  char tmp[2];
+  unsigned char tmp[2];
   char *buff;
   char *line = NULL;
   size_t len = 0;



Reply to: