Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 2015 05:02:21 -0700
From:      Leonardo Fogel <leonardofogel@yahoo.com.br>
To:        John Baldwin <john@araratriver.co>, Konstantin Belousov <kostikbel@gmail.com>
Cc:        freebsd-drivers@freebsd.org, 'Konstantin Belousov' <kib@freebsd.org>
Subject:   Re: Race conditions
Message-ID:  <1439985741.59947.YahooMailBasic@web120802.mail.ne1.yahoo.com>
In-Reply-To: <20150819084834.GM2072@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wed, 8/19/15, Konstantin Belousov wrote:

>      if (sc =3D=3D NULL)
>             return (ENXIO);
> The new cdev was allocated
> with M_ZERO flag, so you can rely on the fact
> that uninitalized fields are zeroed.
=20
I was not aware of this. It looks pretty good to me.

Thank you all for your attention.

Leonardo



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