summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/inet
diff options
context:
space:
mode:
authorJosef 'Jeff' Sipek <jeffpc@josefsipek.net>2015-08-25 17:18:15 -0400
committerDan McDonald <danmcd@omniti.com>2015-08-27 10:03:43 -0400
commita0f9c00cd82d49a710cee8aeb83ce42b5fb293a9 (patch)
treeeb6b65e0675b28907ff3d23271b0948ac414c385 /usr/src/uts/common/inet
parentb1087aec0c7377254423f3429c35960b116e8b34 (diff)
downloadillumos-joyent-a0f9c00cd82d49a710cee8aeb83ce42b5fb293a9.tar.gz
6141 use kmem_zalloc instead of kmem_alloc + bzero/memset
Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Reviewed by: Marcel Telka <marcel@telka.sk> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/uts/common/inet')
-rw-r--r--usr/src/uts/common/inet/ip/spd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/uts/common/inet/ip/spd.c b/usr/src/uts/common/inet/ip/spd.c
index a1c1b355e9..1f984c3651 100644
--- a/usr/src/uts/common/inet/ip/spd.c
+++ b/usr/src/uts/common/inet/ip/spd.c
@@ -4520,10 +4520,9 @@ iplatch_free(ipsec_latch_t *ipl)
ipsec_latch_t *
iplatch_create()
{
- ipsec_latch_t *ipl = kmem_alloc(sizeof (*ipl), KM_NOSLEEP);
+ ipsec_latch_t *ipl = kmem_zalloc(sizeof (*ipl), KM_NOSLEEP);
if (ipl == NULL)
return (ipl);
- bzero(ipl, sizeof (*ipl));
mutex_init(&ipl->ipl_lock, NULL, MUTEX_DEFAULT, NULL);
ipl->ipl_refcnt = 1;
return (ipl);