Race conditions

Leonardo Fogel leonardofogel at yahoo.com.br
Wed Aug 19 12:04:07 UTC 2015


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

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

Thank you all for your attention.

Leonardo


More information about the freebsd-drivers mailing list