Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2016 11:28:11 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Sepherosa Ziehau <sephe@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r297913 - in head/sys/dev/hyperv: netvsc storvsc
Message-ID:  <570E112B.10207@selasky.org>
In-Reply-To: <201604130920.u3D9KTVv071995@repo.freebsd.org>
References:  <201604130920.u3D9KTVv071995@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/13/16 11:20, Sepherosa Ziehau wrote:
>   	bzero(sc, sizeof(hn_softc_t));

Hi,

According to:

> https://svnweb.freebsd.org/base/head/sys/kern/subr_bus.c?revision=297776&view=markup#l2763

It is safe to assume that the memory you get is already zero'ed.

The additional bzero() in your attach routine seems redundant.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?570E112B.10207>