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: <CAOZATax=O1d-08euVHYithhVdQFSt_J_y=D6jPJm51XDXouJpg@mail.gmail.com>
Date:	Fri, 23 Oct 2015 17:39:46 +0530
From:	Nilesh Kokane <nilesh.kokane05@...il.com>
To:	"Dilger, Andreas" <andreas.dilger@...el.com>
Cc:	"Drokin, Oleg" <oleg.drokin@...el.com>,
	"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
	"devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"suneel.raikar@...il.com" <suneel.raikar@...il.com>
Subject: Re: [PATCH 2/2] Staging: lustre: lnet: lib-move return of an errno
 should typically be negative (ie: return -EAGAIN)

On Fri, Oct 23, 2015 at 5:10 PM, Dilger, Andreas
<andreas.dilger@...el.com> wrote:
> On 2015/10/22, 22:30, "Nilesh Kokane" <nilesh.kokane05@...il.com> wrote:
>>Fixed- Return of an errno should typically be negative (ie: return
>>-EAGAIN)
>
> Nak. Please do not change these function return values.  They are
> converted as necessary by the callers before returning to userspace, but
> allow the code to distinguish between errors generated internally or from
> lower networking layers.
>
> As you will note, many of them are explicitly annotated with comments that
> they are returning positive values.  The patch as it stands would totally
> break the code.

Ok. I'll take care next time.

-- 
//Nilesh Kokane
--
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