Don't try to free the now-nonexistent hdrspec field. This one snuck by

me in the previous round of patches.  Oops.
This commit is contained in:
Mike Smith 2000-12-13 02:45:03 +00:00
parent 6763347475
commit 3742d6ca91
2 changed files with 0 additions and 4 deletions

View File

@ -418,8 +418,6 @@ cardbus_hdrtypedata(device_t pcib, int b, int s, int f, pcicfgregs *cfg)
static int
cardbus_freecfg(struct cardbus_devinfo *dinfo)
{
if (dinfo->cfg.hdrspec != NULL)
free(dinfo->cfg.hdrspec, M_DEVBUF);
free(dinfo, M_DEVBUF);
return (0);

View File

@ -412,8 +412,6 @@ pci_freecfg(struct pci_devinfo *dinfo)
devlist_head = &pci_devq;
if (dinfo->cfg.hdrspec != NULL)
free(dinfo->cfg.hdrspec, M_DEVBUF);
if (dinfo->cfg.map != NULL)
free(dinfo->cfg.map, M_DEVBUF);
/* XXX this hasn't been tested */