From: Amitoj Kaur Chawla <amitoj1...@gmail.com>
Date: Sun, 7 Feb 2016 10:56:25 +0530

> The return value of kzalloc 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 only checks that the return value is not 0,
> hence no change is required at the call site.
> 
> Signed-off-by: Amitoj Kaur Chawla <amitoj1...@gmail.com>

Applied, thanks.

Reply via email to