summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-03-18 16:37:51 +0000
committerimp <imp@FreeBSD.org>2005-03-18 16:37:51 +0000
commit5572ca61c8e76fdc695ac13ecf003096ee116bed (patch)
tree8fb491106bdccbe07ffcf43f6649281fae9d2f24 /sys/dev/pccard
parent4565898f624577f1966143d4618aa0850d70db0d (diff)
downloadFreeBSD-src-5572ca61c8e76fdc695ac13ecf003096ee116bed.zip
FreeBSD-src-5572ca61c8e76fdc695ac13ecf003096ee116bed.tar.gz
Need to initialize the resource list that we keep for our children.
STAILQ's require this, while it is optional for SLIST (well, as long as the memory is bzeroed). Noticed by: phk's crash
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r--sys/dev/pccard/pccard.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c
index 167ab8e..716a260 100644
--- a/sys/dev/pccard/pccard.c
+++ b/sys/dev/pccard/pccard.c
@@ -256,6 +256,7 @@ pccard_attach_card(device_t dev)
*/
ivar = malloc(sizeof(struct pccard_ivar), M_DEVBUF,
M_WAITOK | M_ZERO);
+ resource_list_init(&ivar->resources);
child = device_add_child(dev, NULL, -1);
device_set_ivars(child, ivar);
ivar->fcn = pf;
OpenPOWER on IntegriCloud