diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-09-17 01:33:34 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-09-17 01:33:34 +0000 |
commit | a854e6884a9635329a1490f5cf8420c8ab6f8f85 (patch) | |
tree | 29bd971e80c3ea6bf34f989e494141dcc2c006cb /sys/netbt/hci_socket.c | |
parent | 1dd97578d5974d04f8b171b17c36e35635acd61b (diff) |
Only the most obvious bzero() -> M_ZERO changes. No cast changes, no
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an
immediately adjacent bzero().
Diffstat (limited to 'sys/netbt/hci_socket.c')
-rw-r--r-- | sys/netbt/hci_socket.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netbt/hci_socket.c b/sys/netbt/hci_socket.c index 1d55814ad22..4933e461aa0 100644 --- a/sys/netbt/hci_socket.c +++ b/sys/netbt/hci_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hci_socket.c,v 1.3 2007/06/02 01:46:01 uwe Exp $ */ +/* $OpenBSD: hci_socket.c,v 1.4 2007/09/17 01:33:33 krw Exp $ */ /* $NetBSD: hci_socket.c,v 1.10 2007/03/31 18:17:13 plunky Exp $ */ /*- @@ -350,10 +350,9 @@ hci_usrreq(struct socket *up, int req, struct mbuf *m, if (err) return err; - pcb = malloc(sizeof *pcb, M_PCB, M_NOWAIT); + pcb = malloc(sizeof *pcb, M_PCB, M_NOWAIT | M_ZERO); if (pcb == NULL) return ENOMEM; - bzero(pcb, sizeof *pcb); up->so_pcb = pcb; pcb->hp_socket = up; |