diff options
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/if_wi_hostap.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/ic/if_wi_hostap.c b/sys/dev/ic/if_wi_hostap.c index 79aea6b94be..29e6412bafd 100644 --- a/sys/dev/ic/if_wi_hostap.c +++ b/sys/dev/ic/if_wi_hostap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi_hostap.c,v 1.37 2006/11/26 19:46:28 deraadt Exp $ */ +/* $OpenBSD: if_wi_hostap.c,v 1.38 2007/10/03 10:52:11 krw Exp $ */ /* * Copyright (c) 2002 @@ -461,13 +461,10 @@ wihap_sta_alloc(struct wi_softc *sc, u_int8_t *addr) int i, hash = sta_hash_func(addr); /* Allocate structure. */ - MALLOC(sta, struct wihap_sta_info *, sizeof(struct wihap_sta_info), - M_DEVBUF, M_NOWAIT); + sta = malloc(sizeof(*sta), M_DEVBUF, M_NOWAIT | M_ZERO); if (sta == NULL) return (NULL); - bzero(sta, sizeof(struct wihap_sta_info)); - /* Allocate an ASID. */ i=hash<<4; while (whi->asid_inuse_mask[i >> 4] & (1UL << (i & 0xf))) |