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
e1fe72742c
commit
67d1b0df5d
@ -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…
x
Reference in New Issue
Block a user