Thread (2 messages) flat view 2 messages, 2 authors, 2016-02-13

Re: [PATCH 2/3] ibmveth: Return correct error codes

From: David Miller <davem@davemloft.net>
Date: 2016-02-13 10:58:49
Also in: lkml

From: Amitoj Kaur Chawla <redacted>
Date: Thu, 4 Feb 2016 19:25:19 +0530
The return value of kmalloc and kcalloc 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 two call sites only check that the return value is not 0,
hence no change is required at the call sites.

Signed-off-by: Amitoj Kaur Chawla <redacted>
This does not apply cleanly and gives rejects.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help