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]
Date:	Mon, 1 Oct 2007 12:56:55 -0600
From:	Matthew Wilcox <matthew@....cx>
To:	Linas Vepstas <linas@...tin.ibm.com>
Cc:	linux-pcmcia@...ts.infradead.org,
	Dominik Brodowski <linux@...do.de>,
	linux-pci@...ey.karlin.mff.cuni.cz, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Simplify yenta code

On Mon, Oct 01, 2007 at 01:41:15PM -0500, Linas Vepstas wrote:
> -	if (type & IORESOURCE_IO) {
> -		if ((yenta_search_res(socket, res, BRIDGE_IO_MAX)) ||
> -		    (yenta_search_res(socket, res, BRIDGE_IO_ACC)) ||
> -		    (yenta_search_res(socket, res, BRIDGE_IO_MIN)))
> -			return 1;
> -	} else {
> -		if (type & IORESOURCE_PREFETCH) {
> -			if ((yenta_search_res(socket, res, BRIDGE_MEM_MAX)) ||
> -			    (yenta_search_res(socket, res, BRIDGE_MEM_ACC)) ||
> -			    (yenta_search_res(socket, res, BRIDGE_MEM_MIN)))
> -				return 1;
> -			/* Approximating prefetchable by non-prefetchable */
> -			res->flags = IORESOURCE_MEM;
> -		}
> +	if ((yenta_search_res(socket, res, BRIDGE_MEM_MAX)) ||
> +	    (yenta_search_res(socket, res, BRIDGE_MEM_ACC)) ||
> +	    (yenta_search_res(socket, res, BRIDGE_MEM_MIN)))

Are BRIDGE_IO_MAX and BRIDGE_MEM_MAX guaranteed to be the same?

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
-
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