tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: A small cgd(4) diff



On Fri, Jul 10, 2009 at 12:07:03PM +0200, haad wrote:
> On Fri, Jul 10, 2009 at 11:35 AM, Jukka Ruohonen<jruohonen%iki.fi@localhost> 
> wrote:
> > Hi,
> >
> > a small byproduct from debugging cgd(4); use mutex(9) instead of lock(9).
> 
> 
> > --- src/sys/dev/cgd.c   5 Jun 2009 19:21:02 -0000       1.58
> > +++ src/sys/dev/cgd.c   10 Jul 2009 09:27:10 -0000
> > @@ -165,9 +165,8 @@ cgdsoftc_init(struct cgd_softc *cs, int
> >  {
> >        char    sbuf[DK_XNAME_SIZE];
> >
> > -       memset(cs, 0x0, sizeof(*cs));
> 
> This memset seems reasonable to me, why have you removed it ?

I thought that zeroing the whole buffer with M_ZERO would yield the same
result.

- Jukka.


Home | Main Index | Thread Index | Old Index