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:
parent
6763347475
commit
3742d6ca91
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue