Project

General

Profile

Actions

Bug #6141

closed

use kmem_zalloc instead of kmem_alloc + bzero/memset

Added by Josef Sipek about 8 years ago. Updated about 8 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:
External Bug:

Description

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

Actions #1

Updated by Electric Monk about 8 years ago

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

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>

Actions

Also available in: Atom PDF