diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 2004-04-07 17:02:55 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 2004-04-07 17:02:55 +0000 |
| commit | 7b764c37e4643d99df1b7ee4e4129983c5e58085 (patch) | |
| tree | 519d6fe1ea59b73bef2cabd69cd0d327bfbb4722 | |
| parent | c2b37819e4a0f80b56e58602bd22d95a0ee98ae6 (diff) | |
Notes
| -rw-r--r-- | sys/compat/ndis/kern_ndis.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/ndis/kern_ndis.c b/sys/compat/ndis/kern_ndis.c index 34b7b9619da5..cd928dc9ca64 100644 --- a/sys/compat/ndis/kern_ndis.c +++ b/sys/compat/ndis/kern_ndis.c @@ -777,6 +777,8 @@ ndis_convert_res(arg) block = &sc->ndis_block; dev = sc->ndis_dev; + SLIST_INIT(&brl_rev); + rl = malloc(sizeof(ndis_resource_list) + (sizeof(cm_partial_resource_desc) * (sc->ndis_rescnt - 1)), M_DEVBUF, M_NOWAIT|M_ZERO); @@ -805,7 +807,6 @@ ndis_convert_res(arg) * in order to fix this, we have to create our own * temporary list with the entries in reverse order. */ - SLIST_INIT(&brl_rev); SLIST_FOREACH(brle, brl, link) { n = malloc(sizeof(struct resource_list_entry), M_TEMP, M_NOWAIT); |
