Project

General

Profile

Bug #6141

use kmem_zalloc instead of kmem_alloc + bzero/memset

Added by Josef Sipek about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
kernel
Start date:
2015-08-20
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

Instead of using kmem_alloc followed by a bzero or memset, just use kmem_zalloc which does the zeroing for us.

History

#1

Updated by Electric Monk about 5 years ago

  • % Done changed from 80 to 100
  • Status changed from New to Closed

git commit a0f9c00cd82d49a710cee8aeb83ce42b5fb293a9

commit  a0f9c00cd82d49a710cee8aeb83ce42b5fb293a9
Author: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Date:   2015-08-27T14:03:43.000Z

    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>

Also available in: Atom PDF