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:	Thu, 26 Feb 2015 12:17:07 +0000
From:	David Laight <David.Laight@...LAB.COM>
To:	"'sfeldma@...il.com'" <sfeldma@...il.com>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"jiri@...nulli.us" <jiri@...nulli.us>
Subject: RE: [PATCH net-next 1/3] rocker: fix non-portable err return codes

From: sfeldma@...il.com
> The rocker device returns error codes if something goes wrong with descriptor
> processing.  Originally the device used standard errno codes for different
> errors, but since those errno codes aren't portable across ARCHs, the device
> now returns hard-coded error codes that stay constant across diff ARCHs.  Fix
> driver to use those same hard-coded values.

You might as well use dense error numbers and then an array for the conversion.
If you want to avoid confusion, then offset the error numbers from zero.

	David

--
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