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: <Pine.LNX.4.44L0.0611171307180.2627-100000@iolanthe.rowland.org>
Date:	Fri, 17 Nov 2006 13:07:59 -0500 (EST)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Daniel Walker <dwalker@...sta.com>
cc:	Andrew Morton <akpm@...l.org>,
	Venkatesh Pallipadi <venkatesh.pallipadi@...el.com>,
	Jens Axboe <axboe@...nel.dk>,
	Christoph Lameter <clameter@....com>,
	Pedro Roque <roque@...fc.ul.pt>,
	"David S. Miller" <davem@...emloft.net>,
	"Paul E. McKenney" <paulmck@...ibm.com>,
	Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] Allow NULL pointers in percpu_free

On Fri, 17 Nov 2006, Daniel Walker wrote:

> On Fri, 2006-11-17 at 12:36 -0500, Alan Stern wrote:
> 
> >  void percpu_free(void *__pdata)
> >  {
> > +	if (!__pdata)
> > +		return;
> 
> Should be unlikely() right?

It certainly could be.  I tend not to put such annotations in my code, but 
it wouldn't hurt.

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ