Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1333297 > unrolled thread

Re: [PATCH 1/3] net: cavium: liquidio: Return correct error code

Started byDavid Miller <davem@davemloft.net>
First post2016-02-13 12:00 +0100
Last post2016-02-13 12:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/3] net: cavium: liquidio: Return correct error code David Miller <davem@davemloft.net> - 2016-02-13 12:00 +0100

#1333297 — Re: [PATCH 1/3] net: cavium: liquidio: Return correct error code

FromDavid Miller <davem@davemloft.net>
Date2016-02-13 12:00 +0100
SubjectRe: [PATCH 1/3] net: cavium: liquidio: Return correct error code
Message-ID<r1G5I-3Bz-7@gated-at.bofh.it>
From: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Date: Thu, 4 Feb 2016 19:25:13 +0530

> The return value of vmalloc on failure of allocation of memory should
> be -ENOMEM and not -1.
> 
> Found using Coccinelle. A simplified version of the semantic patch
> used is:
 ...
> The single call site of the containing function checks whether the
> returned value is -1, so this check is changed as well. The single call 
> site of this call site, however, only checks whether the value is not 0,
> so no further change was required.
> 
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>

Applied.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web