lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100819163022.GD24357@Krystal>
Date:	Thu, 19 Aug 2010 12:30:22 -0400
From:	Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
To:	Changli Gao <xiaosuo@...il.com>
Cc:	Eric Dumazet <eric.dumazet@...il.com>,
	David Miller <davem@...emloft.net>,
	netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next-2.6] net: build_ehash_secret() and
	rt_bind_peer() cleanups

* Mathieu Desnoyers (mathieu.desnoyers@...ymtl.ca) wrote:
> * Changli Gao (xiaosuo@...il.com) wrote:
> > On Thu, Aug 19, 2010 at 11:46 PM, Eric Dumazet <eric.dumazet@...il.com> wrote:
[...]
> > > +       peer = cmpxchg(&rt->peer, NULL, peer);
> > > +
> > > +       if (unlikely(peer))
> > 
> > It isn't correct, and should be
> >      if (unlikely(cmpxchg(&rt->peer, NULL, peer) != NULL))
> > 
> > >                inet_putpeer(peer);
> > >  }
> 
> What do you mean by "It isn't correct" ? Eric code and yours perform the
> exact same thing. So I assume this is just a code style issue here.

Nevermind my comment, it's not accurate.

Thanks,

Mathieu


-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ