Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 1998 16:00:00 -0700 (PDT)
From:      Jin Guojun (FTG staff) <jin@george.lbl.gov>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: kern/8386: modload failure
Message-ID:  <199810202300.QAA10357@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/8386; it has been noted by GNATS.

From: Jin Guojun (FTG staff) <jin@george.lbl.gov>
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc: se@mi.uni-koeln.de
Subject: Re: kern/8386: modload failure
Date: Tue, 20 Oct 1998 15:55:29 -0700 (PDT)

 Here is the problem in pci/pci_compat.c. Is it line ???? supposed to be
 
 	if (lkm == NULL)	{
 		return	-1;
 	}
 
 segment of pci/pci_compat.c
 
 static void
 pci_rescan(void)
 {
         /* XXX do nothing, currently, soon to come ... */
 }
  
 int pci_register_lkm (struct pci_device *dvp, int if_revision)
 { 
         struct pci_lkm *lkm;
   
         if (if_revision != 0) {
                 return (-1);
         }
         if (dvp == NULL || dvp->pd_probe == NULL || dvp->pd_attach == NULL) {
                 return (-1);
         }
         lkm = malloc (sizeof (*lkm), M_DEVBUF, M_WAITOK);
         if (lkm != NULL) {	/* ?????????????????????????	*/
                 return (-1);
         }
  
         lkm->dvp = dvp;
         lkm->next = pci_lkm_head;
         pci_lkm_head = lkm;
         pci_rescan();  
         return (0);
 }
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810202300.QAA10357>